Is there a more compact way to say this ?

r <-numeric(length(p)) ; s <-numeric(length(p)); t <- numeric(length(p)); u
<- numeric(length(p)); v <- numeric(length(p)) ; x <-numeric(length(p))

all these variables will be used in a loop 

for (i in 1 : length(p)) {
r[i] <-
s[i] <-
t[i] <-
etc
}

--
View this message in context: 
http://r.789695.n4.nabble.com/Is-there-a-better-way-tp3658588p3658588.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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