powered by
This function returns categorical values for any date(s) using year cuts such as bimonths, quarters, terms, and halves.
date_cuts(date = Sys.Date(), type = "Q")
Date. Date we wish to transform
Character. Any of the following: B (2 months), Q (3 months), T (4 months), H (6 months)
Vector with date cut for each date
date
Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_feats(), formatNum(), holidays(), impute(), left(), normalize(), ohe_commas(), ohse(), removenacols(), replaceall(), textFeats(), textTokenizer(), vector2text(), year_month()
balance_data()
categ_reducer()
cleanText()
date_feats()
formatNum()
holidays()
impute()
left()
normalize()
ohe_commas()
ohse()
removenacols()
replaceall()
textFeats()
textTokenizer()
vector2text()
year_month()
# NOT RUN { date_cuts(Sys.Date(), type = "Q") date_cuts(Sys.Date(), type = "H") # }
Run the code above in your browser using DataLab