You want to convert the datetime to POSIXct, not POSIXlt:
> as.POSIXct("2005-12-20 12:45")
[1] "2005-12-20 12:45:00 EST"
See R News 4/1 for details.
On Fri, Nov 28, 2008 at 7:12 PM, Kara Przeczek <[EMAIL PROTECTED]> wrote:
> I am new to R and have been struggling with the following problem. I
>
strptime has output of a POSIXlt object and you want an POSIXct object, so use:
as.POSIXct(strptime(
On Fri, Nov 28, 2008 at 7:12 PM, Kara Przeczek <[EMAIL PROTECTED]> wrote:
> I am new to R and have been struggling with the following problem. I
> apologize if there is an obvious answer that
2 matches
Mail list logo