Re: [R] assign a vector to list sequence

2016-03-09 Thread S Ellison
> > 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}}

Re: [R] assign a vector to list sequence

2016-03-09 Thread Sarah Goslee
Hi, On Wed, Mar 9, 2016 at 10:22 AM, Jan Kacaba wrote: > Hello I would like to assign a vector to list sequence. I'm trying my code > bellow, but the output is not what inteded. > > # my code > mls=vector(mode="list") # my list > cseq=c(1:3) # my vector > mls[cseq]=cseq > > I get following: > [

[R] assign a vector to list sequence

2016-03-09 Thread Jan Kacaba
Hello I would like to assign a vector to list sequence. I'm trying my code bellow, but the output is not what inteded. # my code mls=vector(mode="list") # my list cseq=c(1:3) # my vector mls[cseq]=cseq I get following: [[1]] [1] 1 [[1]] [2] 2 [[1]] [2] 3 What I need is this: [[1]] [1] 1 2 3 [[1]