On 26/03/2010, at 12:23 PM, Achim Zeileis wrote:

> Sorry for coming so late to this thread. One possible explanation for the 
> R side is the following...
> 
> 
> On Thu, 25 Mar 2010, Marc Schwartz wrote:
> 
>> On Mar 25, 2010, at 5:41 PM, Joshua Wiley wrote:
>> 
>>>> Kind of off the thread a bit, but when I do:
>>>> 
>>>>> as.Date(40182)
>>>> 
>>>> I ***do not*** get "2080-01-06".  Instead I get an error:
>>>> 
>>>> Error in as.Date.numeric(40182) : 'origin' must be supplied
> 
> Yes, that is when you use base R's as.Date.numeric() but package "zoo" 
> overloads that:
> 
> R> as.Date(40182)
> Error in as.Date.numeric(40182) : 'origin' must be supplied
> R> library("zoo")
> R> as.Date(40182)
> [1] "2080-01-06"


Ah-ha!!!  So Anna must have had zoo loaded when she did her as.Date() command.

All is in harmony.  OMMMMMMMMMMMMMMMMMM!!!

Thanks for that.

        cheers,

                Rolf
######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################

______________________________________________
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.

Reply via email to