Hi Ramya,

Try something like this:

as.character(unlist(lapply(geneset,function(x) x[1])))

HTH,

Jorge



On Fri, Jun 27, 2008 at 10:33 AM, Rajasekaramya <[EMAIL PROTECTED]>
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
> --
> View this message in context:
> http://www.nabble.com/R-help-tp18156475p18156475.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to