I have data frame which has the date column in format 08/21/2000(m/d/Y).
08/21/2000(m/d/Y)
Now I want to add new column which display the date in Quarter
The zoo library has created a set of functions to handle year-quarter vectors:
library(zoo) mydf$var9=as.yearqtr(as.Date( mydf$Order.Date, "%m/%d/%Y" ).