vec_cast.json2: Casting

View source: R/cast.R

vec_cast.json2R Documentation

Casting

Description

Double dispatch methods to support vctrs::vec_cast().

Usage

## S3 method for class 'json2'
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 json2 vector.


mgirlich/jsontools documentation built on March 21, 2023, 9:10 a.m.