SyntaxFix
Write A Post
Hire A Developer
Questions
The lubridate package is amazing for this kind of thing:
> require(lubridate) > month(date1) [1] 3 > year(date1) [1] 2012