vec_list_cast

0th

Percentile

Cast a list to vector of specific type

This is a function for developers to use when extending vctrs. It casts a list to a more specific vectoring type, keeping the length constant. It does this by discarding (with a warning), any elements after the 1. It is called from vec_cast.XYZ.list() methods to preserve symmetry with vec_cast.list.XYZ().

Keywords
internal
Usage
vec_list_cast(x, to)
Arguments
x

A list

to

Type to coerce to

Details

See vignette("s3-vector") for details.

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

Community examples

Looks like there are no examples yet.