Displaying 20 results from an estimated 2000 matches similar to: "Sweave and Rnews"
2005 Oct 26
1
sweave/help
Hello list,
I would like to know if it is possible to get output of help(foo) with
Sweave.
If I insert ?foo in a chunk, the console give me the help but no output
is obtained in the tex file.
Perhaps something to do with options ?
Thanks in advance !
--
St??phane DRAY (dray at biomserv.univ-lyon1.fr )
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
43, Bd du 11 Novembre 1918, 69622
2005 Nov 11
1
A 'sweave' strange problem !!!
Hello list,
I have found a problem (bug?) with Sweave. I hope that someone could
help me.
Try this little example :
\documentclass[a4paper]{article}
\title{toto}
\author{toto}
\begin{document}
\maketitle
<<ni1, fig=T, eval=TRUE, echo=TRUE, debug=TRUE, results=verbatim,
include =FALSE, width=7, height=7>>=
a<-rnorm(1)+1
a
plot(1:10)
@
patati
<<ni2, fig=F, eval=TRUE,
2001 May 08
1
Rnews 2001/2
Dear package author,
We are now accepting submissions for the second issue of the R
Newsletter. For more information see
http://cran.r-project.org/doc/Rnews/
If you are the author of a package on CRAN and you would like to promote
it a little bit, or if you simply have an interesting application using
R, we hope you can find some time to write a short article on it. We
suggest that it
2004 Feb 23
2
orthonormalization with weights
Hello List,
I would like to orthonormalize vectors contained in a matrix X taking into
account row weights (matrix diagonal D). ie, I want to obtain Z=XA with
t(Z)%*%D%*%Z=diag(1)
I can do the Gram-Schmidt orthogonalization with subsequent weighted
regressions. I know that in the case of uniform weights, qr can do the
trick. I wonder if there is a way to do it in the case of non uniform
2003 Nov 04
2
real eigenvectors
Hello list,
Sorry, these questions are not directly linked to R.
If I consider an indefinte real matrix, I would like to know if the
symmetry of the matrix is sufficient to say that their eigenvectors are real ?
And what is the conditions to ensure that eigenvectors are real in the case
of an asymmetric matrix (if some conditions exist)?
Thanks in Advance,
St?phane DRAY
2004 Oct 22
4
Evaluate a function for various value of parameters
Hello list,
I have a problem ... and do not know how to solve it.
I would like create a function that estimate the quality of the fit of
different functions with different values of parameters.
This problem is related to the following one:
I would like to create a function "evaluatemyfunction" which evaluate a
function f for different values of parameters. For instance, if
2007 Aug 21
4
Formatting Sweave in R-News
Hi,
I am editing a document for submission to the R-news newsletter, and
in my article my Sweave code inserts a dynamically generated PDF
report that my R program generates.
However, when I insert the PDF using the following Sweave code:
\newpage
\includegraphics[scale=1.0]{\Sexpr{print(location)}}
\newpage
(in tex this looks like):
\newpage
\includegraphics[scale=1.0]{/home/arjun/sample.pdf}
2004 Mar 31
3
scan seems to modify the data
Hello list,
I have used scan function to import data into R. I have done some analysis
and find strange results. I have found my problem : when importing data
with scan, this can slightly modify the data :
> write(c(0.251,3.399,-0.481,0.266),"essai.txt")
> scan("essai.txt")
Read 4 items
[1] 0.251 3.399 -0.481 0.266
> print(scan("essai.txt"),17)
Read
2004 Sep 20
4
Multiple operations on list
Hello,
suppose I have a list with matrices:
a=list(x1=matrix(rnorm(10),5,2),x2=matrix(rnorm(10),5,2),x3=matrix(rnorm(10),5,2))
I want to compute for all combination of xi and xj (x1,x2 x1,x3 and x2,x3)
a value.
This value is given for the pair x1,x2 by trace(x1%*%t(x1)%*%x2%*%t(x2)) /
trace(x1%*%t(x1))*trace(x2%*%t(x2))
I know that product matrices t(xi)%*%xi can be obtained by:
2004 Jun 29
2
binding rows from different matrices
Hello list,
I have 3 matrices with same dimension :
> veca=matrix(1:25,5,5)
> vecb=matrix(letters[1:25],5,5)
> vecc=matrix(LETTERS[1:25],5,5)
I would like to obtain a new matrix composed by alternating rows of these
different matrices (row 1 of mat 1, row 1 of mat 2, row 1 of mat 3, row 2
of mat 1.....)
I have found a solution to do it but it is not very pretty and I wonder if
I
2004 Oct 01
1
cumsum over a list or an array
Hello list,
my question is related to svd of a matrix:
b=matrix(rnorm(50),10,5)
mysvd=svd(b)
I would like to compute each xi where xi = di* ui %*% t(vi). I do it by :
xlist=sapply(1:ncol(b), function(x1,y)
y$d[x1]*y$u[,x1]%*%t(y$v[,x1]),y=mysvd,simplify=F) # result is a list
xarray=array(sapply(1:ncol(b), function(x1,y)
y$d[x1]*y$u[,x1]%*%t(y$v[,x1]),y=mysvd),c(nrow(b),ncol(b),ncol(b))) #
2004 Jul 06
2
Generate a matrix Q satisfying t(Q)%*%Q=Z and XQ=W
Hello,
I have a question that is not directly related to R ... but I try to do it
in R ;-) :
I would like to generate a matrix Q satisfying (for a given Z, X and W) the
two following conditions:
t(Q)%*%Q=Z (1)
XQ=W (2)
where:
Q is m rows and r columns
X is p rows and m columns
D is p rows and r columns
C is r rows and r columns
with m>p,r
e.g:
m=6,
p=2
r=3
2001 Aug 13
0
Rnews 2001/3
Dear package author,
We are now accepting submissions for the third issue of the R
Newsletter. For more information see
http://cran.r-project.org/doc/Rnews/
If you are the author of a package on CRAN and you would like to promote
it a little bit, or if you simply have an interesting application using
R, we hope you can find some time to write a short article on it. We
suggest that it be
2002 Mar 24
0
Rnews 2002/2
Dear package author,
We are now accepting submissions for the 2002/2 issue of the R
Newsletter. For more information see
http://cran.r-project.org/doc/Rnews/
If you are the author of a package on CRAN and you would like to promote
it a little bit, or if you simply have an interesting application using
R, we hope you can find some time to write a short article on it. We
suggest that it
2002 Aug 28
0
Rnews 2002/3
Dear package author,
We are now accepting submissions for the 2002/3 issue of the R
Newsletter. For more information see
http://CRAN.R-project.org/doc/Rnews/
If you are the author of a package on CRAN and you would like to promote
it a little bit, or if you simply have an interesting application using
R, we hope you can find some time to write a short article on it. We
suggest that it
2004 Mar 24
7
binding vectors or matrix using their names
Hello list,
I have two vectors x and x2:
x=runif(10)
x2=runif(10)
and one vectors with their names :
my.names=c("x","x2")
I would like to cbind these two vectors using their names contained in the
vector my.names.
I can create a string with comma
ncomma=paste(my.names,collapse=",")
and now, I just need a function to transform this string into a adequate
2002 Dec 12
1
Comments not documented in language reference (PR#2367)
The R Language Definition manual should document comments. I think
this should go after section 10.1 "The Parsing Process" and before
10.2 "Tokens". Here's some draft text.
@node Comments, Tokens, The parsing process, Parser
@comment node-name, next, previous, up
@section Comments
Comments in R are ignored by the parser. Any text from a \# character
to the end of
2005 Aug 05
3
Latex error with Sweave example
I created a tex file following the example in the Sweave help which
produced the following files in my working directory.
Sweave-test-1-006.eps
Sweave-test-1-006.pdf
Sweave-test-1-007.eps
Sweave-test-1-007.pdf
Sweave-test-1.tex
When I run latex on this, I get a latex error, log file below. I am
running R 2.1.1 on Windows XP. I have installed "small MiKTeX" and I
have added
2008 Jul 27
2
Colors in Sweave
Hi list,
I was using Sweave and was wondering if anyone has had any luck changing the font colors of the code chunks. For instance, in my .Rnw preample I tried including:
===
\usepackage[usenames]{colors}
\definecolor{darkred}{rgb}{0.545,0,0}
\definecolor{midnightblue}{rgb}{0.098,0.098,0.439}
\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl,formatcom={\color{midnightblue}}}
2012 Jan 19
2
Sweave question - Setting Soutput code chunks to stay inside page margins?
Hello all,
Sometimes I get to make an R code chunk (in Sweave) which is longer then
the margins of the page. Is there a way to force it to "go to the next
line" (in Sweave) once that happens?
Here are two cases this happens in the resulting .tex file (one is a "hard"
case, and the other is simpler)
\begin{Schunk}
\begin{Sinput}
>