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.
I got the problem backwards. the_time specifies the minute:second portion of the string representation of the time. To remove it, rather than keeping it, just use str_remove in place of str_extract.