is_length_not_1: Check if an object has a length greater than 1

View source: R/assertions.R

is_length_not_1R Documentation

Check if an object has a length greater than 1

Description

Check if an object has a length greater than 1

Usage

is_length_not_1(x, msg = "Length is 1.", fail = TRUE)

Arguments

x

an object

msg

character string with the error message to return if fail = TRUE.

fail

logical whether to return an error if length is not greater than 1.


IQSS/Zelig documentation built on Dec. 11, 2023, 1:51 a.m.