[R] subset factor?
Erik Iverson
eriki at ccbr.umn.edu
Fri Jan 14 16:48:36 CET 2011
Silvano wrote:
> Hi,
>
> I used subset command, like this:
>
> grupoP = subset(dados, grupos=='P', select=c(mortos, vivos, doses,
> percevejos, p))
>
> and the variables in select option are numeric.
They may *look* numeric, but are they really? You don't give us
enough information to determine that. Either give us a sample
of your data with the dput command, or the output of str(grupoP).
More information about the R-help
mailing list