Learn R Programming

jsontools (version 0.1.0)

vec_ptype2.json2: Coercion

Description

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

Usage

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

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

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

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

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

Arguments

x

Vector types.

y

Vector types.

...

These dots are for future extensions and must be empty.

x_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()).

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.