new_stype_vctr: The internal builder of (basic) stype vctrs

View source: R/utilities.R

new_stype_vctrR Documentation

The internal builder of (basic) stype vctrs

Description

Used instead of vctrs::new_vctr in each builder in order to keep the attributes consistent across stype vctrs.

Usage

new_stype_vctr(
  x,
  .internal_name,
  .data_summary,
  .context,
  .extra_descriptors,
  .auto_compute_summary,
  .class,
  new_fun = vctrs::new_vctr,
  ...
)

Arguments

x

the vector data

.internal_name

internal_name attribute

.data_summary

data_summary attribute

.context

context attribute

.class

passed to the class argument of (e.g.) the new_fun

new_fun

the vctrs new_* function to use. Defaults to vctrs::new_vctr(). The first argument must the "data" argument called ".data" in new_vctr and "x" in new_factor and "fields" in new_rcrd.

.extra_descriptor

extra_descriptors attribute a list of descriptor functions


novisci/stype documentation built on July 28, 2022, 7:44 a.m.