R:将月份和2位数的年份转换为日期

问题描述:

如何在R和 lubridate 中转换此日期字符串?

How can this date string be converted in R and lubridate?

lubridate::as_date('Apr-78', format = '%B-%Y')

如何防止错误无效的"tz" ?

lubridate::parse_date_time("Apr-78", 'my')