Skip to contents

Test if object is a vector of length 2

Usage

is_vector_2(x)

Arguments

x

An object to test.

Value

A logical.

Examples

is_vector_2(c(100, 200))
#> [1] TRUE
is_vector_2(42)
#> [1] FALSE