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.


privacytoolsproject/PSI-Library documentation built on Feb. 17, 2020, 2:03 p.m.