[R] howto convert matrix of numeric values to Date class?

2008-09-26 Thread Philip James Smith
Hi: I have a matrix, named mat, of numeric values that are in days since Jan 1, 1960. I want to convert them Date class values so that I can do things like seq( value , len=10, by=1 week) where value is any of the matrix elements. How do I do this? Please reply to: [EMAIL PROTECTED]

Re: [R] howto convert matrix of numeric values to Date class?

2008-09-26 Thread jim holtman
You should be able to convert with: myDate - as.Date(dates, origin='1960-1-1') On Fri, Sep 26, 2008 at 12:53 PM, Philip James Smith [EMAIL PROTECTED] wrote: Hi: I have a matrix, named mat, of numeric values that are in days since Jan 1, 1960. I want to convert them Date class values so