Hello everyone,
I have the following example data Frame:
Date <- c("9.3.2020, 18:18", "10.4.2020, 20:13", "20.12.2020, 9:15")
JumpHeight <- c(35.1, 29.5, 36.2)
BodyWeight <- c(90.6, 90.5, 91.7)
df <- c(Date, JumpHeight, BodyWeight)
In this data Frame, the "Date" variable is unfortunately written as the date (d.m.y), time (hh:mm). I am not interested in the time aspect of this column and would like to remove the time so I can format this date properly using the as.Date function.
I am having a difficult time removing the time in this column. I would like to remove everything including and after the comma in this data string.
Thank you for anyone who is willing to help!