Learn R Programming

shard (version 0.1.0)

is_shared_vector: Check if an object is a shared vector

Description

Check if an object is a shared vector

Usage

is_shared_vector(x)

Value

TRUE if x is a shard ALTREP vector, FALSE otherwise

Arguments

x

Any R object

Examples

Run this code
# \donttest{
seg <- segment_create(400)
segment_write(seg, 1:100, offset = 0)
x <- shared_vector(seg, "integer", length = 100)

is_shared_vector(x)
is_shared_vector(1:10)
# }

Run the code above in your browser using DataLab