vec_ptype2.json2: Coercion

View source: R/coerce.R

vec_ptype2.json2R Documentation

Coercion

Description

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

Usage

## S3 method for class 'json2'
vec_ptype2(x, y, ..., x_arg = "", y_arg = "")

## S3 method for class 'json'
vec_ptype2(x, y, ..., x_arg = "", y_arg = "")

## S3 method for class 'jqson'
vec_ptype2(x, y, ..., x_arg = "", y_arg = "")

## S3 method for class 'pq_jsonb'
vec_ptype2(x, y, ..., x_arg = "", y_arg = "")

vec_ptype2.pq_json(x, y, ..., x_arg = "", y_arg = "")

Arguments

x, y

Vector types.

...

These dots are for future extensions and must be empty.

x_arg, y_arg

Argument names for x and y. These are used in error messages to inform the user about the locations of incompatible types (see stop_incompatible_type()).

Value

A length-zero R object.


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