[R] Using subset with describe in Hmisc
Frank E Harrell Jr
feh3k at spamcop.net
Sat Sep 6 06:54:41 CEST 2003
On Fri, 5 Sep 2003 20:28:59 -0700
"Greg Blevins" <gblevins at mn.rr.com> wrote:
> Hello,
>
> This is an embarassingly simple question, but I cannot get subset to work with describe.
>
> dataframe is attached and called Ph
>
> >describe(q1, subset=qs3a==1)
>
> qs3a is numeric.
>
> This runs, but no subset takes place.
>
> Thanks in advance.
>
> Greg Blevins
> The Market Solutions Group
> [[alternative HTML version deleted]]
If you type ?describe you won't see a subset argument for describe when the first argument is not a formula. Use describe(~ q1, subset=....).
---
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list