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

vec_data(x)

Arguments

x

A vector

Value

The data underlying x, free from any attributes except the names.

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.