[R] TimeStamp
Uwe Ligges
ligges at statistik.tu-dortmund.de
Tue Sep 14 14:24:56 CEST 2010
On 06.09.2010 03:51, Roberto Badilla Fuentes wrote:
> Hi,
>
> I have a dataset in .dbf format. It contains Coordinates and Time.
> The TIMESTAMP is as follows:
>
> 03/18/2006 13:30:37
> I am not working with the TIMESTAMP column, but when I print out my
> manipulated dataset using
> *write.dbf* I get the value *390 *where the TIMESTAMP value should be. Can
> Anyone help me out why R does this
> and how I can correct it.
Probably the timestamp was read in as a factor.
Use as.character() followed by, e.g., strptime() to convert it to a time
format.
Best,
Uwe Ligges
>
> Thanks
> -Roberto
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list