
Convert date column to numeric and calculate its modulus with given timestep.
Source:R/utils.R
date_to_numeric_modulus.RdThis function processes a date column in a data.table, converting it to a
numeric representation and then computing the modulus with the provided
timestep.
Value
A modified data.table with two new columns: one for the numeric representation of the date minus the minimum date and another for its modulus with the timestep.
See also
Utility functions
aggregate_rolling_sum(),
coerce_date(),
coerce_dt(),
get_internal_timestep(),
is.Date(),
stan_fns_as_string()