Coerce an aweek object to factor to include missing weeks
an aweek object
an aweek object that inherits from
factor() with levels that span
the range of the weeks in the object.
when factored aweek objects are combined with other aweek objects, they are converted back to characters.
w <- get_aweek(week = (1:2) * 5, year = 2019, day = c(7, 1)) w wf <- factor_aweek(w) wf # factors are destroyed if combined with aweek objects c(w, wf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.