R:将月份和2位数的年份转换为日期 [英] R: Convert month and 2 digit year into date
本文介绍了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')
这篇关于R:将月份和2位数的年份转换为日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文