Description Usage Arguments Details Value Examples
Checks the number of rows in data.
1 2 3 4 5 6 | check_rows(
data,
min_row = 1,
max_row = max_nrow(),
data_name = substitute(data)
)
|
data |
The data frame to check. |
min_row |
A count of the minimum number of rows. |
max_row |
A count of the maximum number of rows. |
data_name |
A string of the name of data. |
By default (min_row = 1
) data must include at least one row.
Throws an informative error or returns an invisible copy of data.
1 2 | try(check_rows(data.frame()))
try(check_rows(data.frame(x = 1), 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.