Creating a weekday column

Yeas, another question:
I get this error: attempt to use zero-length variable name
when I use this code: df$month <- format(as.Date(df$date), '%m')
What do you think this error is all about? I am looking at fixing it.
Thanks a lot!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.