>>I would like to keep the old subset() for efficiency, look at the
following:
> dim(basic)
[1] 1247 247
> dos.time(names(subset(basic,PAT==100)))
[1] 2.420006
> dos.time(names(df.subset(basic,PAT==100)))
[1] 19.06
Factor 8 is quite a differ
ence.
Also it can be an advantage, if factors are *not* automatically changed,
e.g. if you want to
tabulate empty categories also, or to get a warning on
empty categories rather than smoothly running an analysis you don't
really want.
<<
Jens, you have convinced me.
Regards,
John Thaden
University of ARkansas for Medical Sciences
Little Rock Arkansas USA