tags:

views:

208

answers:

1
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?

+1  A: 

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.

Dirk Eddelbuettel
Thank you sir... will keep in mind. Cheers!
Nate