| specify_df | R Documentation |
specify_df() creates a function that will call stabilize_df() with the
provided arguments. specify_data_frame() is a synonym of specify_df().
specify_df(
...,
.extra_cols = NULL,
.col_names = NULL,
.min_rows = NULL,
.max_rows = NULL,
.allow_null = TRUE
)
specify_data_frame(
...,
.extra_cols = NULL,
.col_names = NULL,
.min_rows = NULL,
.max_rows = NULL,
.allow_null = TRUE
)
... |
Named stabilizer functions, such as |
.extra_cols |
A single stabilizer function, such as a |
.col_names |
|
.min_rows |
|
.max_rows |
|
.allow_null |
|
A function of class "stbl_specified_fn" that calls
stabilize_df() with the provided arguments. The generated function will
also accept ... for additional named column specifications to pass to
stabilize_df(). You can copy/paste the body of the resulting function if
you want to provide additional context or functionality.
Other data frame functions:
stabilize_df(),
to_df()
Other specification functions:
specify_chr(),
specify_dbl(),
specify_fct(),
specify_int(),
specify_lgl(),
specify_lst()
stabilize_person_df <- specify_df(
name = specify_chr_scalar(allow_na = FALSE),
age = specify_int_scalar(allow_na = FALSE),
.extra_cols = stabilize_present
)
stabilize_person_df(data.frame(name = "Alice", age = 30L, score = 99.5))
try(stabilize_person_df(data.frame(name = "Alice")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.