[R] How to convert number (matlab) to date
ggrothendieck at gmail.com
Mon Jul 18 14:08:31 CEST 2011
On Sat, Jul 16, 2011 at 11:50 PM, Eduardo M. A. M. Mendes
<emammendes at gmail.com> wrote:
> I am new to R and I need to convert some dates (numeric format by matlab) to actual dates in R.
> For instance,
> Matlab -> 730456 -> >> datestr(730456)
> ans =
Set the origin to Matlab's origin like this. Be sure you are using
the indicated version of zoo or later:
> as.Date(730456, origin = "0000-00-00")
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help