Change data's time frame

I want to convert yyyy-mm-dd hh-mm-ss to yyyy-mm-dd. So I type the code showed below.

tripdata_v1 <- format(tripdata_v1$started_at, format = "%Y-%m-%d")

And then tripdata_v1 appear in value section instead of data section.(top right pane)
How can I change the time frame and remain tripdata_v1 in data section.

You replaced your data.frame by the reformatted column.
I think you meant to use

tripdata_v1$started_at <- format(tripdata_v1$started_at, format = "%Y-%m-%d")
1 Like

Oh man I have Trapped by this problem almost whole day. I owe you a big hug. Thank you!!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.