checkLength: Check if input xs has length n

Description Usage Arguments Value

View source: R/utilities-input-validation.R

Description

Check if input xs has length n

Usage

1
checkLength(xs, n)

Arguments

xs

A vector, factor, or object for which length is defined.

n

A numeric value of length 1. The expected length of xs.

Value

xs or error.


IQSS/PSI-Library documentation built on Feb. 15, 2020, 9:03 p.m.