[R] R help

Martin Morgan mtmorgan at fhcrc.org
Fri Jun 27 18:58:25 CEST 2008


Martin Morgan wrote:
> Hi Rajasekaramya
> 
> sapply(geneset[1:5431], "[[", "V1")
> 
> or
> 
> Bioconductor::subListExtract(geneset[1:5431], "V1")

oops, I meant using the 'Biobase' package from Bioconductor, e.g.,

 > library(Biobase)
 > subListExtract(geneset[1:5431], "V1")

Sorry for the confusion,

Martin

> 
> Martin
> 
> Rajasekaramya wrote:
>> Hi,
>>
>> I have a problem in assessing the list element.
>>
>>      i have list called geneset it contains the following elements
>>            > geneset
>>       [[1]]
>>          V1          V2       V3  .......V200
>>    Genename    gene1  gene2....gene200
>>
>>    [[2]]
>>        V1            V2   V3 V4...V[240]
>>     Genename    gene1 gene2....gene240
>>   :
>>   :
>>   :
>>   :
>>   : [[5431]]
>>
>>
>> i want to get  V1 values for all the elements(1:5431) in the geneset in a
>> may be in a vector or in any other form
>>
>>
>> Ramya Thulasingam
> 
> 


-- 
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M2 B169
Phone: (206) 667-2793



More information about the R-help mailing list