Re: [R] Passing vectors through a dataframe

2014-02-07 Thread arun
Hi, Try:   mylist <- list(F4087=F4087, F4287=F4287) #or mylist <- list(F4087, F4287)  names(mylist) <- dxnames  mylist[[maxr2]] #[1] 3423  543 6768  867  945 3456 5634 6543  345 mylist[dxnames] $F4087 [1]  234 1234   65   34  624  345 $F4287 [1] 3423  543 6768  867  945 3456 5634 6543  345 A.K.

Re: [R] Passing vectors through a dataframe

2014-02-07 Thread Jeremy Clark
## Many thanks ! - the list idea almost works - but I can't find the indexing ## needed to extract an element from the list using an object created from ## the dataframe. ## maxr2[[1]] doesn't seem to work despite being the correct character ## string. ## I've now added a list to the example (

Re: [R] Passing vectors through a dataframe

2014-02-06 Thread Duncan Murdoch
On 06/02/2014 10:00 AM, Jeremy Clark wrote: Dear All, I would like to be able to associate a list of vectors (one vector of which is to be called later) with some other character and numeric data. I've tried two methods: 1) I can put the vector names in quotes into the dataframe, and then extra

Re: [R] Passing vectors through a dataframe

2014-02-06 Thread S Ellison
> I would like to be able to associate a list of vectors (one vector of which > is to > be called later) with some other character and numeric data. > > Probably I'm missing something basic ? see ?list Lists accept vectors of different lengths. S Ellison ***

[R] Passing vectors through a dataframe

2014-02-06 Thread Jeremy Clark
Dear All, I would like to be able to associate a list of vectors (one vector of which is to be called later) with some other character and numeric data. I've tried two methods: 1) I can put the vector names in quotes into the dataframe, and then extract the vector name - but this is just a charac