equal.lengths: Confirm that all input vectors are the same length.

Description Usage Arguments Value Examples

Description

Confirm that all input vectors are the same length.

Usage

1

Arguments

...

Two or more vectors to be compared.

Value

Returns an error if the vectors are of unequal length, returns a warning if only one vector is supplied, and returns nothing if the vectors are of equal length.

Examples

1
2
3
## Not run: equal.lengths(rnorm(10), rnorm(10), rnorm(9))
## Not run: equal.lengths(rnorm(10))
## Not run: equal.lengths(rnorm(10), rnorm(10), rnorm(10))

tbdiag documentation built on May 2, 2019, 7:59 a.m.