test_equal_rows: Test that two dataframes have the same number of rows

Description Usage Arguments Value Examples

Description

Performs a test that the dataframe has the number of rows as another dataframe (even if the contents are different).

Usage

1

Arguments

df

A dataframe

df2

Another dataframe

Value

df

Examples

 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)

joshmuncke/easytest documentation built on Aug. 14, 2019, 3:07 p.m.