[R] extracting the levels of a subset of data
Jesus.Frias at dit.ie
Fri Sep 19 13:16:07 CEST 2003
> I'd like to get only "A" as output...
to get your answer
2.-or call factor again to reduce the levels:
> tmpd <- subset(myd,clas=="A")
 "A" "B" "C"
> tmpd$clas <- factor(tmpd$clas)
This message has been scanned for content and
viruses by the DIT ICT Services MailScanner Service,
and is believed to be clean.
More information about the R-help