Re: [R] R help

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Fri, 27 Jun 2008 08:49:53 -0700

Hi Rajasekaramya

sapply(geneset[1:5431], "[[", "V1")

or

Bioconductor::subListExtract(geneset[1:5431], "V1")

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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 27 Jun 2008 - 15:57:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 27 Jun 2008 - 18:31:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive