Skip to contents

Checks for compact sequence ALTREPs

Usage

is_compact_vec(x)

Arguments

x

Any R object

Value

A scalar logical. TRUE if x is a compact sequence, otherwise FALSE

Examples

is_compact_vec(1:3)
#> [1] TRUE