[R] Extracting a subset

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon May 10 16:21:52 CEST 2010



On 10.05.2010 14:35, Silvano wrote:
> Hi,
>
> I have a dataset with many variables and observations.
> The variable Group has two levels: C and P,
> the Month variable has four levels: 0, 1, 2 and 3.
>
> I want to extract a subset of the variable Weight, considering only 1
> and 3 levels for Months of the Group variable.
>
> I tried the command subset but it did not work. Any suggestions?


Tell us how you used it and how your data looks like and we may be in a 
position to help afterwards,.

 > PLEASE do read the posting guide
 > http://www.R-project.org/posting-guide.html
 > and provide commented, minimal, self-contained, reproducible code.


Uwe Ligges


> Thanks,
>
> --------------------------------------
> Silvano Cesar da Costa
> Departamento de Estatística
> Universidade Estadual de Londrina
> Fone: 3371-4346
>
> ______________________________________________
> 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.



More information about the R-help mailing list