Skip to contents

Test if object is a vector of length 4

Usage

is_vector_4(x)

Arguments

x

An object to test.

Value

A logical.

Examples

is_vector_4(c(0, 0, 0, 1))
#> [1] TRUE
is_vector_4(c(1, 2, 3))
#> [1] FALSE