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">Thanks everybody. Stephen
The error is just a misleading error message. loading the data produced column sdate as> str(prostate)$ sdate :Classes 'labelled', 'dates' atomic [1:502] 2778 2820 2933 2999 3002 ... .. ..- attr(*, "format")= symbol ddmmmyy .. ..- attr(*, "label")= chr "Date on study" prostate$sdate <- as.Date(prostate$sdate,origin="1970-01-01") # fixes the problem and 'describe' runs just as a comment: maybe the R dataset should have sdate as a Date class. -- View this message in context: http://r.789695.n4.nabble.com/Hmisc-describe-error-tp4644708p4644711.html Sent from the R help mailing list archive at Nabble.com.
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