I rather new to R, so please excuse any errors. I've only posted a few times.
I have large dataset in tidy format. The Month column in the dateframe is in character format. I am trying to convert the Month column to a date format for each month so I can graph the timeseries without having to scale the x-axis using discrete limits. The simple example is as follows:
library(tidyverse)
library(lubridate)
# character string as months
Month=c("January", "February", "March")
# convert character to date format
Month <- Month %>% as_date(Month)
But I receive the following error:
Warning message: All formats failed to parse. No formats found.
Is there a way to convert the character to date?
Thanks