| specify_lgl | R Documentation |
specify_lgl() creates a function that will call stabilize_lgl() with the
provided arguments. specify_lgl_scalar() creates a function that will call
stabilize_lgl_scalar() with the provided arguments. specify_logical() is
a synonym of specify_lgl(), and specify_logical_scalar() is a synonym of
specify_lgl_scalar().
specify_lgl(
allow_null = TRUE,
allow_na = TRUE,
min_size = NULL,
max_size = NULL
)
specify_lgl_scalar(
allow_null = FALSE,
allow_zero_length = FALSE,
allow_na = TRUE
)
specify_logical(
allow_null = TRUE,
allow_na = TRUE,
min_size = NULL,
max_size = NULL
)
specify_logical_scalar(
allow_null = FALSE,
allow_zero_length = FALSE,
allow_na = TRUE
)
allow_null |
|
allow_na |
|
min_size |
|
max_size |
|
allow_zero_length |
|
A function of class "stbl_specified_fn" that calls
stabilize_lgl() or stabilize_lgl_scalar() with the provided arguments.
The generated function will also accept ... for additional arguments to
pass to stabilize_lgl() or stabilize_lgl_scalar(). You can copy/paste
the body of the resulting function if you want to provide additional
context or functionality.
Other logical functions:
are_lgl_ish(),
stabilize_lgl()
Other specification functions:
specify_chr(),
specify_dbl(),
specify_df(),
specify_fct(),
specify_int(),
specify_lst()
stabilize_few_lgl <- specify_lgl(max_size = 5)
stabilize_few_lgl(c(TRUE, "False", TRUE))
try(stabilize_few_lgl(rep(TRUE, 10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.