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,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?
I suspect you meant
axis.Date(1, as.Date(sites$date, origin="1960-10-01"))
as the 'x' argument to as.Date()
has to be of type Date
.
As an aside, this would have appropriate as a follow-up or edit of your previous question.