On Wed, Jun 20, 2012 at 12:59 AM, Leuzinger Sebastian
<[hidden email]> wrote:
> Dear all
> Is there a more efficient way of achieving the following (assigning to an indexed vector in a loop):
> test5 <- 1:10
> eval(parse(text=paste("test",5,"[",7,"]<- ",0.435,sep="")))
> this works, but it is probably very slow.
> Sebastian Leuzinger
> [hidden email] 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.
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles