vec_data

0th

Percentile

Extract underlying data

Extract the data underlying an S3 vector object, i.e. the underlying atomic vector or list. Currently, due to the underlying memory architecture of R, this creates a full copy of the underlying data.

Usage
vec_data(x)
Arguments
x

A vector

Value

The data underlying x, free from an attributes.

See Also

See vec_restore() for the inverse operation: it restores attributes given a bare vector and a prototype; vec_restore(vec_data(x), x) will always yield x.

Aliases
  • vec_data
Documentation reproduced from package vctrs, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.