rt_floor_date_factor: returns an ordered factor of the date vector

rt_floor_date_factorR Documentation

returns an ordered factor of the date vector

Description

date_floor: 'week' gives 'YYYY-MM-DD' with the 'Monday' as the date when week_start is '1' date_floor: 'month' gives 'YYYY-MM' date_floor: 'quarter' gives 'YYYY-QX' date_floor: 'year' gives 'YYYY'

Usage

rt_floor_date_factor(date_vector, date_floor = "week", week_start = 1)

Arguments

date_vector

the date vector

date_floor

'week', 'month', 'quarter', 'year'

week_start

same values of floor_date, defaults to '1' which starts the week on Monday


shane-kercheval/rtools documentation built on July 7, 2022, 8:31 a.m.