Displaying 1 result from an estimated 1 matches for "somethinghere_i".
2010 Feb 18
1
variable substitution
...R. The data.frame has 300 columns and 2500 rows. Not all columns are continuous variables, some are factors, descriptors, etc., so I use the varlist to pick which columns I want to analyze.
#Example script
varlist<-read.table(/path/to/varlist)
for (i in 1:length(varlist)){
res<-mean(Dataset$SOMETHINGHERE_i )
write(res) somewhere
}
Something like that. Any suggestions?
Thanks
Jon
Soli Deo Gloria
Jon Erik Ween, MD, MS
Scientist, Kunin-Lunenfeld Applied Research Unit
Director, Stroke Clinic, Brain Health Clinic, Baycrest Centre
Assistant Professor, Dept. of Medicine, Div. of Neurology
Univers...