Re: [R] How to get to the varable in a list

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Mon 03 Oct 2005 - 00:15:49 EST

Lisa Wang wrote:

> Hello,
>
> I have a list "lis" as the following:
>
> $"1"
> x1 x2
> 4 3 1
>
> $"2"
> x1 x2
> 3 3 2
> 5 3 2
>
> $"3"
> x1 x2
> 2 3 3
> 6 3 3
>
> How do I get the x1 varible? for example ss"1"

I can only guess you mean something like

   lis[[1]][["x1"]]

Uwe Ligges

>
>
> ------------------------------------------------------------------------
>
> This e-mail may contain confidential and/or privileged inf...{{dropped}}



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 03 00:19:16 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:08:48 EST