test_n_rows: Test the number rows in a dataframe

Description Usage Arguments Value Examples

Description

Performs a test that the dataframe has the number of rows you expect.

Usage

1

Arguments

df

A dataframe

n

Expected number of rows

Value

The dataframe passed to the function.

Examples

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)

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