make_stype_constructor: Create a constructor function for stype vectors

View source: R/utilities.R

make_stype_constructorR Documentation

Create a constructor function for stype vectors

Description

Create a constructor function for stype vectors

Usage

make_stype_constructor(
  typeFUN,
  ptypeFUN,
  castFUN = ptypeFUN,
  dataFUN = identity
)

Arguments

typeFUN

the new_ function that creates vdctors of the type

ptypeFUN

the prototype of the vector

castFUN

optionally cast the data by vec_cast

dataFUN

a function to apply to the data before describeing the the data. Defaults to identity.


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