Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_length_not_1

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.


Zelig

Everyone's Statistical Software

v5.1.7
GPL (>= 3)
Authors
Christine Choirat [aut], Christopher Gandrud [aut], James Honaker [aut], Kosuke Imai [aut], Gary King [aut], Olivia Lau [aut], Robert Treacy [aut, cre], IQSS Harvard University [cph]
Initial release
2020-12-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.