[R] Indexing on a variable that is a factor

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Sep 9 19:08:39 CEST 2006

"Farrel Buchinsky" <fjbuch at gmail.com> writes:

> It is easy to index on numeric variables.
> How does one index on a variable that is a factor?

Er, same way. Unless you attach some novel meaning to "index on".

   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907

More information about the R-help mailing list