Description Usage Arguments Value Examples
Given a data.frame or data.table object and a target number of rows, check that a dataset has that many rows
1 | assert_nrows(data, target_nrows, quiet = FALSE)
|
data |
A data.frame or data.table |
target_nrows |
Numeric – number of expected rows |
quiet |
Do you want to suppress the printed message when a test is passed? Default = F. |
Throws error if test is violated
1 | assert_nrows(CO2,84)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.