Hi,
The "xtable" method for "summary.prcomp" is just creating a table of the
"importance" values. So you can get the same table for just a few of the PCs
by subscripting the importance values:
xtable(mySummary$importance[,1:2],digits=4)
Best,
Charlie
-Original Message-
From: r-he
eck the options for a default value. This was suggested
since "print.xtable()" has a lot of arguments that the user
will typically leave unchanged between tables.
* Added an "is.null()" check on the "table.placement" argument.
* Added examples using th
han to
"xtable()":
print(xtable(summary(lm(y~x)),
align="r",
caption="Summary statistics for the regression model",
label="tab:summary",
digits=2),
caption.placement="top")
If you have any additional questions, fee
etter suggestions on components to use? If anyone
else is doing something similar drop me a note and we can share ideas.
Thanks,
Charlie
Charles Roosen, PhD
Technical Director
Mango Solutions AG
T: +41 (0)61 206 92 91
M: +41 (0)79 248 70 71
F: +41 (0) 61 206 92 99
www.mango-solutions.com
Another option is to use StatTransfer which is a commercial data
exchange product from Circle Systems:
http://www.stattransfer.com
That's the basis of the import/export in S-PLUS:
http://www.stattransfer.com/stattransfer/developers.html
I wouldn't be surprised if it's al
Hi,
Take a look at the Bioconductor packages, particularly "BSgenome". If
that isn't specific enough, you might want to try the Bioconductor
mailing list rather than "R-help".
http://www.bioconductor.org/packages/release/bioc/html/BSgenome.html
bioconduc...@stat.math.ethz.ch
B
Hi Stephan,
You'll get the expected result if you pass a data.frame to the lm() function
when fitting the model.
> yy <- runif(4)
> XX <- matrix(runif(8),ncol=2)
> df <- data.frame(y=yy, XX)
> df
yX1X2
1 0.52889284 0.8055476 0.6670006
2 0.09989951 0.2498907 0.8867955
3
Hi,
You can use diag() and matrix multiplication to create a matrix with the
requested rows, and assign() to store the rows as separate vectors:
> vec <- c(3,2,6,4,7)
> mat <- diag(vec)
> for (i in seq_along(vec)) assign(paste("vec", letters[i],
sep="."), mat[i,])
since we haven't had the Basel
office open long enough to pop up on Google.
Best regards / Mit freundlichen Gruessen,
Charlie Roosen
Charles Roosen, PhD
Technical Director
mangosolutions
data analysis that delivers
T: +41 (0)61 206 92 91
M: +41 (0)79 248 70 71
F: +41 (0) 61 206 92 99
w
* Charles Roosen, Mango Solutions AG, on Web-based R Reporting
I'm pretty excited about the first two presentations myself. I'm also
looking forward to seeing old friends and meeting new ones.
Details are on the new Basel R web site at:
http://www.baselr.org/
Warm regards,
Charlie R
10 matches
Mail list logo