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

Uwe Ligges ligges at statistik.uni-dortmund.de
Sun Oct 2 16:15:49 CEST 2005


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}}




More information about the R-help mailing list