Dear R community,    I am using a dataset and would like to define new
variables using a R variable:

e.g.

for (i in 1:10){
   dataset$i<-something
}

But this is not the right way, I get only one variable in "dataset"...
How can I change this?

Thank you!
Georg.
************************
Georg Ehret
Johns Hopkins
Baltimore, MD

        [[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.

Reply via email to