vec_data | R Documentation |
Extract the data underlying an S3 vector object, i.e. the underlying (named) atomic vector, data frame, or list.
vec_data(x)
x |
A vector or object implementing |
The data underlying x
, free from any attributes except the names.
vec_proxy()
vec_data()
returns unstructured data. The only attributes
preserved are names, dims, and dimnames.
Currently, due to the underlying memory architecture of R, this creates a full copy of the data for atomic vectors.
vec_proxy()
may return structured data. This generic is the
main customisation point for accessing memory values in vctrs,
along with vec_restore()
.
Methods must return a vector type. Records and data frames will be processed rowwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.