Re: [R] Absolute path in gdata library

2012-11-08 Thread Riccardo Romoli
I was completely ignoring both path.expand() and normalizePath()... My solution were a little more complicated. I write some 'if else' to check which computer I'm using now and 'adjust' the right path... Thanks for your precious suggestion!!! I will try to use normalizePath() to semplificate my co

Re: [R] Problem compiling Rnw file

2012-11-06 Thread Riccardo Romoli
nge that position. >> >> e.g. if the data was in '/home/r/Documents/mydata/whatever.txt', while you >> are working in '/home/r/Documents/myproj/', you can reach that directory via >> '../mydata/whatever.txt'. >> >> >> On 05.

[R] Problem compiling Rnw file

2012-11-05 Thread Riccardo Romoli
Dear R list, I'm using R 2.15.2 with TeX Live 2009 and ESS 12.09 . I have a R project in the '/home/r/Documents/myproj/', which is my working directory (where I have the .Rnw file). Inside the document I have several "setwd()" to collect the datasets I use. After I compile from the terminal using

[R] Sweave problem after R update version

2012-04-17 Thread Riccardo Romoli
I would notice this error compiling a Sweave document after I updated R from version 2.14.2 to 2.15.0: Error in driver$finish(drobj) : the output file 'MyDocument.tex' has disappeared Calls: -> do.call -> -> Execution halted Do you have any suggestion? Regards Riccardo Sent from iPod

[R] Sweave compiling problem

2012-04-15 Thread Riccardo Romoli
Hi, I' a newbie in Debian (I came from OsX) and I notice this error compiling a Sweave document after I installed the last R relese (2.15.0): Error in driver$finish(drobj) : the output file 'MyDocument.tex' has disappeared Calls: -> do.call -> -> Execution halted Do you have any suggestion?

Re: [R] Sweave Print xtable

2012-02-26 Thread Riccardo Romoli
name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA > > > > On Sun, Feb 26, 2012 at 3:30 PM, Riccardo Romoli > wrote: > > Hi, I'm working with Sweave and I have some trouble generating table. > The R > > code

[R] Sweave Print xtable

2012-02-26 Thread Riccardo Romoli
Hi, I'm working with Sweave and I have some trouble generating table. The R code is: print(xtable(myTable, caption ="", label="tab:myTab", digits=3), tabular.environment='tabular', floating=TRUE, caption.placement="top",size="\\scriptsize") and the resulting LaTeX table is: \begin{table

[R] xtable prcomp

2012-02-22 Thread Riccardo Romoli
Hi, I need to export to LaTex the summary of a PCA. So: myPCA <- prcomp(myDF) mySummary <- summary(myPCA) # print(xtable(mySummary)) How can I export to LaTeX not all the summary but only the first nPCs?? Best Riccardo __ R-help@r-project.org mailing

[R] Error predict with lda and cross validation

2012-01-17 Thread Riccardo Romoli
Hi, I use the lda function from the MASS package to classify some samples according to some chemical properties. If I run lda without cross validation all is ok but, if I run lda with cross validation, the R consol say: resLDA <- ldaRedOx <- lda(Activity ~ TRedOx[,1:6], CV=TRUE, data=dfD

Re: [R] Sweave Chunks

2012-01-07 Thread Riccardo Romoli
Thank for your answare, but I'm talking about doing this in EMACS. Should I ask this to the ESS mailing list?? Best Riccardo On 07/gen/12, at 15:52, Duncan Murdoch wrote: On 12-01-06 6:46 PM, Riccardo Romoli wrote: Hi, is there a way to collapse/expand the Sweave chunks? Use

[R] Sweave Chunks

2012-01-06 Thread Riccardo Romoli
Hi, is there a way to collapse/expand the Sweave chunks? Best Riccardo __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented,