check_equal_length: Check Length

View source: R/input-check-helpers.R

check_equal_lengthR Documentation

Check Length

Description

Check whether variables all have the same length

Usage

check_equal_length(..., one_allowed = TRUE)

Arguments

...

The variables to check

one_allowed

logical, allow arguments of length one that can be recycled

Value

The function returns NULL, but throws an error if variable lengths differ


scoringutils documentation built on Feb. 16, 2023, 7:30 p.m.