date_cuts | R Documentation |
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. Date we wish to transform |
type |
Character. Any of the following: B (2 months), Q (3 months), T (4 months), H (6 months) |
Vector with date cut for each date
Other Data Wrangling:
balance_data()
,
categ_reducer()
,
cleanText()
,
date_feats()
,
file_name()
,
formatHTML()
,
holidays()
,
impute()
,
left()
,
normalize()
,
num_abbr()
,
ohe_commas()
,
ohse()
,
quants()
,
removenacols()
,
replaceall()
,
replacefactor()
,
textFeats()
,
textTokenizer()
,
vector2text()
,
year_month()
,
zerovar()
date_cuts(Sys.Date(), type = "Q")
date_cuts(Sys.Date(), type = "H")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.