vec_cast.palette: Palette Casting

View source: R/cast.R

vec_cast.paletteR Documentation

Palette Casting

Description

Dispatch methods for vctrs::vec_cast()

Usage

## S3 method for class 'palette'
vec_cast(x, to, ...)

Arguments

x

Vectors to cast.

to

Type to cast to. If NULL, x will be returned as is.

...

For vec_cast_common(), vectors to cast. For vec_cast(), vec_cast_default(), and vec_restore(), these dots are only for future extensions and should be empty.

Value

a vector of the same length, as class palette if convertible, otherwise character


palette documentation built on Sept. 13, 2025, 9:08 a.m.