Nothing
Code
format(weekday(1:7))
Output
[1] "Sun" "Mon" "Tue" "Wed" "Thu" "Fri" "Sat"
Code
format(weekday(1:7), abbreviate = FALSE)
Output
[1] "Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday"
[7] "Saturday"
Code
format(weekday(1:7), labels = "fr", abbreviate = FALSE)
Output
[1] "dimanche" "lundi" "mardi" "mercredi" "jeudi" "vendredi" "samedi"
labels
is validatedCode
format(weekday(1), labels = 1)
Condition
Error in `format()`:
! `labels` must be a <clock_labels>, not the number 1.
abbreviate
is validatedCode
format(weekday(1), abbreviate = "foo")
Condition
Error in `format()`:
! `abbreviate` must be `TRUE` or `FALSE`, not the string "foo".
Code
format(weekday(1), abbreviate = 1)
Condition
Error in `format()`:
! `abbreviate` must be `TRUE` or `FALSE`, not the number 1.
Code
format(weekday(1), abbreviate = c(TRUE, FALSE))
Condition
Error in `format()`:
! `abbreviate` must be `TRUE` or `FALSE`, not a logical vector.
x
Code
weekday_code(1)
Condition
Error in `weekday_code()`:
! `x` must be a <clock_weekday>, not the number 1.
encoding
is validatedCode
weekday_code(weekday(1), encoding = "foo")
Condition
Error in `weekday_code()`:
! `encoding` must be one of "western" or "iso", not "foo".
Code
weekday_code(weekday(1), encoding = 1)
Condition
Error in `weekday_code()`:
! `encoding` must be a string or character vector.
x
is validatedCode
weekday_factor(1)
Condition
Error in `weekday_factor()`:
! `x` must be a <clock_weekday>, not the number 1.
labels
is validatedCode
weekday_factor(weekday(1), labels = 1)
Condition
Error in `weekday_factor()`:
! `labels` must be a <clock_labels>, not the number 1.
encoding
is validatedCode
weekday_factor(weekday(1), encoding = "foo")
Condition
Error in `weekday_factor()`:
! `encoding` must be one of "western" or "iso", not "foo".
Code
weekday_factor(weekday(1), encoding = 1)
Condition
Error in `weekday_factor()`:
! `encoding` must be a string or character vector.
abbreviate
is validatedCode
weekday_factor(weekday(1), abbreviate = "foo")
Condition
Error in `weekday_factor()`:
! `abbreviate` must be `TRUE` or `FALSE`, not the string "foo".
Code
weekday_factor(weekday(1), abbreviate = 1)
Condition
Error in `weekday_factor()`:
! `abbreviate` must be `TRUE` or `FALSE`, not the number 1.
Code
weekday_factor(weekday(1), abbreviate = c(TRUE, FALSE))
Condition
Error in `weekday_factor()`:
! `abbreviate` must be `TRUE` or `FALSE`, not a logical vector.
Code
weekday(1) < weekday(2)
Condition
Error in `vec_proxy_compare()`:
! Can't compare or order values of the <clock_weekday> type, as this type does not specify a "first" day of the week.
Code
min(weekday(1))
Condition
Error in `vec_proxy_compare()`:
! Can't compare or order values of the <clock_weekday> type, as this type does not specify a "first" day of the week.
Code
xtfrm(weekday(1:2))
Condition
Error in `vec_proxy_compare()`:
! Can't compare or order values of the <clock_weekday> type, as this type does not specify a "first" day of the week.
Code
vec_order(weekday(1:2))
Condition
Error in `vec_proxy_compare()`:
! Can't compare or order values of the <clock_weekday> type, as this type does not specify a "first" day of the week.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.