将 data_numeric 转换为 R 中的日期
我有一个包含数字日期列的数据集。如何将数字形式的 2017.31 转换为日期“2017-4-22”?
I have a dataset that have a numeric date column. How can I convert 2017.31 in a numeric form to the date of "2017-4-22"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是 4 月 23 日,而不是 22 日,但这也许是正确的开始:
%j
代码在?strptime
。That may be Apr 23, not the 22nd, but perhaps this is the right start:
The
%j
code is described in?strptime
.