[R] Hmisc describe error
Bond, Stephen
Stephen.Bond at cibc.com
Mon Oct 1 19:31:00 CEST 2012
Just as a clarification: I downloaded 'prostate.sav' from F. Harrell's website. For some reason
> data(prostate)
Warning message:
In data(prostate) : data set 'prostate' not found
I don't have the prostate data set as is.
-----Original Message-----
From: David Winsemius [mailto:dwinsemius at comcast.net]
Sent: Monday, October 01, 2012 12:53 PM
To: Bond, Stephen
Cc: r-help at r-project.org
Subject: Re: [R] Hmisc describe error
On Oct 1, 2012, at 9:33 AM, Bond, Stephen wrote:
> Describe fails for me with a message similar to what was an issue in 2008 and got fixed according to posts.
>
> R version 2.15.0 (2012-03-30)
> Copyright (C) 2012 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: i386-pc-mingw32/i386 (32-bit)
>
> # output truncated
>
>> options(chmhelp = FALSE, help_type = "text")
>> .help.ESS <- help
>> options(STERM='iESS', editor='gnuclient.exe')
>> load('prostate.sav')
>> library(rms)
> Loading required package: Hmisc
> Loading required package: survival
> Loading required package: splines
> Hmisc library by Frank E Harrell Jr
>
> Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview')
> to see overall documentation.
>
> NOTE:Hmisc no longer redefines [.factor to drop unused levels when
> subsetting. To get the old behavior of Hmisc type dropUnusedLevels().
>
>
> Attaching package: 'Hmisc'
>
> The following object(s) are masked from 'package:survival':
>
> untangle.specials
>
> The following object(s) are masked from 'package:base':
>
> format.pval, round.POSIXt, trunc.POSIXt, units
>
>
> Attaching package: 'rms'
>
> The following object(s) are masked from 'package:survival':
>
> Surv
>
>> describe(prostate)
> Error in format(dates(x)) : could not find function "dates"
>>
>
Iget anerror when I use that code.
Error in describe(prostate) : object 'prostate' not found
And when I attempt loading it get:
data(prostate)
So you must have a different set of objects or packages loaded on your installation than I do.
David Winsemius, MD
Alameda, CA, USA
More information about the R-help
mailing list