search for: my_posixa

Displaying 1 result from an estimated 1 matches for "my_posixa".

Did you mean: my_posix
2006 Nov 09
1
POSIXlt converted to POSIXct in as.data.frame()
...value <- as.data.frame.POSIXct(as.POSIXct(x), row.names, optional, ...) if (!optional) names(value) <- deparse(substitute(x))[[1]] value } <environment: namespace:base> which seems a little brutal. Using I() seems to be a work-around: my_DF <- data.frame(my_POSIXa=I(my_POSIX)) str(my_DF) class(my_DF$my_POSIXa) DF_Date <- as.Date(my_DF$my_POSIXa) str(DF_Date) DF_Date In the original problem (conversion of a list read from PostgreSQL to a data frame with as.data.frame()), having to know that you need to insert I() is perhaps unexpected. Roger -- Roger...