Skip to content
Back to formatted view

Raw Message

Message-ID: <1351081503931-4647306.post@n4.nabble.com>
Date: 2012-10-24T12:25:04Z
From: colaiutachambers
Subject: for ( i in 23:0 ) { V <- vector [ 1 : i ] }

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.