Description Usage Arguments Value Note Examples
Coerce an aweek object to factor to include missing weeks
1 | factor_aweek(x)
|
x |
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.
1 2 3 4 5 6 7 | 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.