Skip to contents

This checks if x is an instance of an ALTREP class. Notably it doesn't check if x is an ALTREP class (ie the return value from alt_class()), which is more difficult to achieve.

Usage

is_altrep(x)

Arguments

x

Any R object

Value

A scalar logical. TRUE if x is ALTREP, otherwise FALSE.

Examples

is_altrep(1)
#> [1] FALSE
is_altrep(1:2)
#> [1] TRUE