R日期“起源”必须提供 [英] R dates "origin" must be supplied

查看:3031
本文介绍了R日期“起源”必须提供的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码:

axis.Date(1,sites$date, origin="1960-10-01")

错误:

Error in as.Date.numeric(x) : 'origin' must be supplied

为什么我在上面的代码中提供这个原因?

Why is it asking me for the origin when I supplied it in the above code?

推荐答案

我怀疑你的意思是

axis.Date(1, as.Date(sites$date, origin="1960-10-01"))

作为 as.Date()必须是类型 Date

除此之外,这将适合作为后续或编辑你以前的问题。

As an aside, this would have appropriate as a follow-up or edit of your previous question.

这篇关于R日期“起源”必须提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆