Re: [R] xtable prcomp

2012-02-23 Thread Charles Roosen
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

[R] xtable "beta" testing wanted

2012-02-07 Thread Charles Roosen
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

Re: [R] xtable and sweave: caption placement problem

2011-11-18 Thread Charles Roosen
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

[R] Asciidoc toolchain for vignettes

2011-05-19 Thread Charles Roosen
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

Re: [R] Revolution Analytics reading SAS datasets

2011-02-12 Thread Charles Roosen
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

Re: [R] DNA sequence Fst

2010-08-23 Thread Charles Roosen
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

Re: [R] predict.lm, matrix in formula and newdata

2010-08-17 Thread Charles Roosen
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

Re: [R] replacing values in a vector

2010-08-17 Thread Charles Roosen
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,])

Re: [R] Local R Training

2010-04-12 Thread Charles Roosen
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

Re: [R] BaselR

2010-03-30 Thread Charles Roosen
* 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