test_same_as_other_df: Test that two dataframes are equal

Description Usage Arguments Value Examples

Description

Performs a test that the dataframe is equal to another dataframe.

Usage

1

Arguments

df

A dataframe

df2

Another dataframe

Value

df

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Basic usage
## Not run: 
test_same_as_other_df(mtcars, mtcars)
test_same_as_other_df(mtcars, iris)

## End(Not run)

# Can also be used in magrittr pipe
## Not run: 
library(dplyr)
mtcars %>%
mutate(mpg = 50) %>%
test_same_as_other_df(mtcars)

## End(Not run)

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