[R] assign a vector to list sequence

S Ellison S.Ellison at LGCGroup.com
Wed Mar 9 16:52:21 CET 2016


> > What I need is this:
> > [[1]]
> > [1] 1 2 3
> > [[1]]
> > [2] 1 2 3
> > [[1]]
> > [2] 1 2 3

Try
rep(list(1:3), 3)

S Ellison


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list