Description Usage Arguments Value Examples
Performs a test that the dataframe has the number of rows you expect.
1 | test_n_rows(df, n)
|
df |
A dataframe |
n |
Expected number of rows |
The dataframe passed to the function.
1 2 3 4 5 6 | # Basic usage
test_n_rows(mtcars, 32)
# Can also be used in magrittr pipe
library(dplyr)
mtcars %>% test_n_rows(32) %>% select(mpg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.