vec_coerce: Vector coercion

Description Usage Arguments

View source: R/vec-coerce.R

Description

vec_coerce() is a binary generic meant to power automatic coercions in tidyverse and r-lib packages. Methods should:

Usage

1
vec_coerce(from, to)

Arguments

from

The vector to coerce. The return value should be a vector as long as from.

to

The vector containing the type information to determine the coercion of from.


lionel-/coercer documentation built on May 3, 2019, 8:59 p.m.