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
I am new to R and have been struggling with the following problem. I apologize
if there is an obvious answer that I have missed.
I bring in a .txt file (pyr_h.txt) that has a DateTime column in the format
"-mm-dd HH:MM"
When it comes into R, R does not recognize it as a date/time format.
3 matches
Mail list logo