assert_nrows: Assert that a data.frame contains a specified number of rows

Description Usage Arguments Value Examples

View source: R/assert_nrows.R

Description

Given a data.frame or data.table object and a target number of rows, check that a dataset has that many rows

Usage

1
assert_nrows(data, target_nrows, quiet = FALSE)

Arguments

data

A data.frame or data.table

target_nrows

Numeric – number of expected rows

quiet

Do you want to suppress the printed message when a test is passed? Default = F.

Value

Throws error if test is violated

Examples

1

assertable documentation built on Jan. 27, 2021, 9:07 a.m.