[R] for ( i in 23:0 ) { V <- vector [ 1 : i ] }
colaiutachambers
gabriele.carrarini at gmail.com
Wed Oct 24 14:25:04 CEST 2012
I'm used to run that on Matlab
>> for indice=1:23,
V=vector(1:indice)
end
that give me 23 vectors as output.
Why the same command on R " for ( i in 23:0 )
{ V <- vector [ 1 : i ] } "
returns one only vector?
How can I obtain the 23 vectors that I need ?
Thank you.
--
View this message in context: http://r.789695.n4.nabble.com/for-i-in-23-0-V-vector-1-i-tp4647306.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list