The date in my original Excel file represents the monthly data in the format of “Jan-01”. Of course, I can manually convert them to something more useful in the Excel first and then input that into R.
How can I convert such adate into a Date class in R?
If you want a
dateclass, use as.Date:If you want a
POSIXctclass, consider usinglubridate:If you want to just rely on
base: