This function lets the user automatically create new columns out of a dataframe or vector with date/time variables.
date_feats(dates, keep_originals = FALSE, only = NA, features = TRUE,
holidays = FALSE, country = "Colombia", currency_pair = NA,
summary = TRUE)
Vector or dataframe. Non-date/time columns will be automatically ignored.
Boolean. Should the original date/time columns be kept in the results?
Character or vector. Which columns do you wish to process? If non are explicitly defined, all will be processed
Create features out of date/time columns?
Boolean. Include holidays as new columns?
Character or vector. For which countries should the holidays be included?
Character. Which currency exchange do you wish to get the history from? i.e, USD/COP, EUR/USD...
Boolean. Print a summary of the operations?
Other Data Wrangling: balance_data
,
calibrate
, categ_reducer
,
cleanText
, dateformat
,
formatNum
, formatTime
,
holidays
, impute
,
left
, normalize
,
numericalonly
, ohse
,
one_hot_encoding_commas
,
rbind_full
, removenacols
,
removenarows
, replaceall
,
right
, textFeats
,
textTokenizer
, vector2text
,
year_month
, year_week