Calculate the length of all input arguments to see if they are equal. Entries that are NULL, and thus, have a length of zero are ignored. An optional trigger to stop() is provided with a tailored error message.

check_eqlength(..., keepgoing = FALSE)

Arguments

...

Input arguments of unknown length.

keepgoing

A logical value specifying if the function should continue or terminate upon finding input arguments of non-equal length. The default, FALSE, produces an error and terminates the function.

Value

TRUE or FALSE depending on the result of the test. Nothing is returned if the stop function is invoked.

Author

Kelli F. Johnson

Examples