[R] How to convert number (matlab) to date
pdalgd at gmail.com
Mon Jul 18 20:57:28 CEST 2011
On Jul 18, 2011, at 20:19 , Gabor Grothendieck wrote:
> On Mon, Jul 18, 2011 at 1:59 PM, peter dalgaard <pdalgd at gmail.com> wrote:
>> On Jul 18, 2011, at 16:36 , Gabor Grothendieck wrote:
>>>> However, this was after reinstalling and reloading zoo. Restarting R and retrying did indeed make things work.
>>> Does the fact that it worked if R was restarted, but not without,
>>> imply that there is something in R that needs to be fixed?
>> Well, zoo is rewriting code in base. Apparently, it didn't do it again on the second library(zoo). Not really sure who to blame for what...
> Its done in the .onLoad function in zzz.R in zoo. It seems that if
> one re-installs zoo and then runs it that the .onLoad is not rerun. I
> would have thought it would reload the package and therefore .onLoad
> would be run again..
> Also there exists .onAttach but its not used by zoo. Should the code
> for as.Date.numeric be put in an .onAttach instead or in both .onLoad
> and .onAttach?
Or perhaps not at all!
I'll leave this discussion for others.
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help