It works now. Your help is much appreciated Christiaan 2009/2/27 Frank E Harrell Jr <f.harr...@vanderbilt.edu>
> christiaan pauw wrote: > >> Hi Everybody >> I use R2.8.0 on Mac OS X. I set up LyX 1.6.1 to use Sweave today. I can >> compile the test file I found on CRAN ( >> http://cran.r-project.org/contrib/extra/lyx/) without a problem and the >> output looks very nice. In the test file the following R code is used. >> >> <<myFirstChunkInLyX>>= >> xObs <- 100; xMean <- 10; xVar <- 9 >> x <- rnorm(n=xObs, mean=xMean, sd=sqrt(xVar)) >> mean(x) >> @ >> >> that should be the same as: >> >> xObs <- 100 >> xMean <- 10 >> xVar <- 9 >> x <- rnorm(n=xObs, mean=xMean, sd=sqrt(xVar)) >> mean(x) >> >> in the R console. >> >> My problem is that I want to import data to use in my report. In the R >> source I currently use to analyse my data I import it through csv.get(). I >> have found that I cannot use csv.get() or write.csv() or that matter. I >> don't seem to be able to use load() to get a .rda file in either >> >> Is this issue related to LyX, LaTeX or R? >> >> Thanks in advance >> Christiaan >> > > I didn't see the library(Hmisc) statement in your code that would give you > access to csv.get. This should be unrelated to lyx, Sweave, etc. > Frank > > >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> 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, minimal, self-contained, reproducible code. >> >> > > -- > Frank E Harrell Jr Professor and Chair School of Medicine > Department of Biostatistics Vanderbilt University > [[alternative HTML version deleted]] ______________________________________________ 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, minimal, self-contained, reproducible code.