Description Usage Arguments Value Examples
Performs a test that the dataframe has the number of rows as another dataframe (even if the contents are different).
1 | test_equal_rows(df, df2)
|
df |
A dataframe |
df2 |
Another dataframe |
df
1 2 3 4 5 6 7 8 9 10 11 12 | # Basic usage
## Not run:
test_equal_rows(mtcars, mtcars)
test_equal_rows(mtcars, iris)
## End(Not run)
# Can also be used in magrittr pipe
library(dplyr)
mtcars %>%
mutate(mpg = 50) %>%
test_equal_rows(mtcars)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.