[R] Extracting a subset

Silvano silvano at uel.br
Mon May 10 14:35:45 CEST 2010


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?

Thanks,

--------------------------------------
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346



More information about the R-help mailing list