Convert date field to Quarter in R
I have data frame which has the date column in format 08/21/2000(m/d/Y).
Now i want to add new column which display the date in Quarter format that
is 2000-Q3.
I install ZOO package and used following command. but it is giving NA value.
mydf$var9=as.yearqtr("mydf$Order.Date","%m/%d/%Y").
No comments:
Post a Comment