I have data from different dates in R which I need to remove if the data is not from timestamps between 08:00:00 and 18:00:00.
Is it easier to remove them if there is a column with the date and time together or should I seperate them first so that I have a column with date and another one with the time?
timestamp | Price |
---|---|
2001-02-02 20:15:00 | 0.01 |
2001-02-02 21:17:00 | 0.05 |
2001-02-03 10:10:00 | 0.03 |
I have data for nearly every minute a day, between 2005 and 2020. Executing the task in this example I hope that only 2001-02-03 10:10:00 with the given return should be left.
Thanks for you help!