Create or coerce using yearweek()
.
yearweek(.data, tz = "UTC", 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)
#> Warning: tz(): Don't know how to compute timezone for object of class integer; returning "UTC".
#> Error in loadNamespace(x): there is no package called ‘vecvec’