test_n_per_group: Test that there n rows per group

Description Usage Arguments Details Value Examples

View source: R/col-tests.R

Description

Performs a test that every grouped level of a dataframe has exactly n rows.

Usage

1

Arguments

df

A dataframe

n

Expected number of rows

...

Grouping variables

Details

You can use multiple grouping variables in this function.

Value

The dataframe passed to the function.

Examples

1
2
# Basic usage - passes
test_n_per_group(iris, 50, Species)

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