Create or coerce using yearweek().
yearweek(.data, tz = NULL, discrete = TRUE)Another object to be coerced into ISO 8601 year-weeks.
Timezone, defaults to "UTC".
If TRUE, the number of chronons since Unix epoch that
.data falls into is returned as an integer. If FALSE, a fractional number
of chronons is returned (analagous to time using a continuous time model).
yearweek(Sys.Date())
#> Error in loadNamespace(x): there is no package called ‘vecvec’
yearweek(0:52)
#> Error in loadNamespace(x): there is no package called ‘vecvec’