assert_cols | R Documentation |
assert_cols()
checks whether columns selected using ...
match the given
prototype and/or number of columns. If so, it returns the data frame;
otherwise, it throws an error.
assert_cols(.data, ..., ptype = NULL, n = NULL)
.data |
A data frame or data frame extension (e.g. a |
... |
|
ptype |
The prototype that the selected columns should match |
n |
The number of columns that should be selected |
The input object, .data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.