Learn R Programming

lares (version 5.0.3)

year_week: Convert Date into Year-Week (YYYY-WW)

Description

This function lets the user convert a date into YYYY-WW format

Usage

year_week(date)

Arguments

date

Date. Date we wish to transform

Value

Vector with dates reformatted

See Also

Other Data Wrangling: balance_data(), categ_reducer(), cleanText(), date_cuts(), date_feats(), formatNum(), holidays(), impute(), left(), normalize(), numericalonly(), ohe_commas(), ohse(), removenacols(), removenarows(), replaceall(), textFeats(), textTokenizer(), vector2text(), year_month()

Examples

Run this code
# NOT RUN {
year_week(Sys.Date())
# }

Run the code above in your browser using DataLab