after loading a table from R, I need to convert several variables in useful data.
Let's say the column I want to change's name is mydata[[2]][6]
.
This list has char data, for instance "42255.7298611111"
, and according to Openoffice, that value corresponds with 08/09/2015 17:31:00
.
As far as I've seen, in other variables like mydata[[2]][3]
, where data is just for dates, data "42260"
is easily converted to 09/14/2015
just by using:
mydata[[2]][3] <- list(as.Date(strtoi(unlist(mydata[[2]][3])), origin="1900-01-01"))
Any guess about how to solve date-time problem?
Thanks in advanced! :)