check_rows: Check Rows

Description Usage Arguments Details Value Examples

View source: R/check-rows.R

Description

Checks the number of rows in data.

Usage

1
2
3
4
5
6
check_rows(
  data,
  min_row = 1,
  max_row = max_nrow(),
  data_name = substitute(data)
)

Arguments

data

The data frame to check.

min_row

A count of the minimum number of rows.

max_row

A count of the maximum number of rows.

data_name

A string of the name of data.

Details

By default (min_row = 1) data must include at least one row.

Value

Throws an informative error or returns an invisible copy of data.

Examples

1
2

poissonconsulting/datacheckr documentation built on March 18, 2021, 10:37 a.m.