On Mon, 4 Mar 2013, MacQueen, Don wrote:
Immediately after you see one of those messages, do, e.g.,
find('cor')
It should tell you that you have more than one object named 'cor' in your
search path, and where they all are. Then you can decide if it's what you
want (probably not, but can't say from here).
Don,
find doesn't because these are apparently not individual files. So I run
egrep -R 'cor' * or egrep -R 'as.Date' * within /usr/lib/R/library and see
many instances of where these strings are used. Many are in help files.
Others are used in different libraries; for example:
gdata/unitTests/runit.getDateTimeParts.R:cDate <- as.Date(tDate)
plyr/tests/test-rbind.r: d = as.Date(c("2008-01-01", "2009-01-01",
"2010-01-01")))
spacetime/demo/gvis.R: rural_PM10$time == as.Date("2003-12-31"))
timeDate/unitTests/runit.SpecialDates.R: dts <- as.Date(ch.dts)
zoo/NAMESPACE: "as.Date",
I'm not seeing code for as.Date, as.Date.numeric, or cor in multiple
libraries.
Thanks,
Rich
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.