[R] Is there a better way ?

eric ericstrom at aol.com
Mon Jul 11 04:29:05 CEST 2011


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.



More information about the R-help mailing list