http://www.stat.uni-muenchen.de/~leisch/Sweave/Sweave-manual.pdf
alexander.weids...@gmail.com wrote:
Hi, I have this basic R code that I would like to rewrite into Sweave code. Ideally I would like Latex to display both the code and the "statistics". R and Sweave is completely new to me so I would really appreciate some help.
read.table("df1.txt", header=TRUE, sep=";", na.strings=c("na","."), skip="1",
dec="0",nrows=1000)
df1.rda<-read.table("df1.txt", header=TRUE, sep=";", na.strings=c("na","."), skip="1",
dec="0",nrows=1000)
str(df1.rda)
summary(df1.rda)
mean(df1.rda, na.rm=TRUE)
sd(df1.rda, na.rm=TRUE)
attach(df1.rda)
plot(wage,school)
pdf(file = "df1.pdf", paper = "A4")
--
This message was sent on behalf of alexander.weids...@gmail.com at
openSubscriber.com
http://www.opensubscriber.com/messages/r-help@r-project.org/topic.html
______________________________________________
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.
--
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826
______________________________________________
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.