[R] Date Time Conversion

reichm@@j m@iii@g oii sbcgiob@i@@et reichm@@j m@iii@g oii sbcgiob@i@@et
Wed May 8 17:04:30 CEST 2019


r-Help Community

 

I need to convert a date-time field (column)  but I'm losing the time  when
I convert using  ..

 

tsData <- myData[,10, drop=FALSE]

tsData$date_time <- as.Date(tsData$date_time, format="%m/%d/%y %H:%M")

head(tsData)

 


 

 

date_time

<date>

	

1

2013-06-20

	

2

2013-06-20

	

3

2013-06-20

	

4

2013-06-20

	

5

2013-05-30

	

6

2013-06-20

	

 

R is doing what I'm asing it to do so I'm obviously using the wrong command.
How do I convert, retaining the time 

 

Sincerely

 

Jeffery (Jeff) Reichman


	[[alternative HTML version deleted]]



More information about the R-help mailing list