[R] Breakdown of Vector
jholtman at gmail.com
Fri Nov 21 17:37:34 CET 2008
exam.list <- split(EXAM, floor((seq_along(EXAM) - 1) / 20))
On Fri, Nov 21, 2008 at 10:48 AM, Rajasekaramya <ramya.victory at gmail.com> wrote:
> I have a vector of Size 7420. I wanna break down in such a way that every 20
> elements of it should be as elements of an list.
> ABC, SDF, LMN,ERF,EGC,EFG,WER,FRE,QWE,ERT,DGW,QWE,YUR,ERT,GHJ,FHH,....7420
> what i want is
> i thought of using a for loop but i am wondering how to incerment
> for( i =0;i<=length(EXAM1);i+20)
> print (paste(i))
> Ias this how we do...please correct me if am wrong.
> View this message in context: http://www.nabble.com/Breakdown-of-Vector-tp20623764p20623764.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help