Create or coerce using yearweek().

yearweek(.data, tz = "UTC", discrete = TRUE)

Arguments

.data

Another object to be coerced into ISO 8601 year-weeks.

tz

Timezone, defaults to "UTC".

discrete

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).

Details

[Experimental]

Examples


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’