These functions implement compatibility with vctrs-package for rvars.

# S3 method for rvar
vec_ptype2(x, y, ...)

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

# S3 method for rvar
vec_cast(x, to, ...)

# S3 method for default
vec_cast.rvar(x, to, ...)

# S3 method for rvar
vec_ptype2.rvar(x, y, ...)

# S3 method for rvar
vec_cast.rvar(x, to, ...)

# S3 method for rvar
vec_ptype2.double(x, y, ...)

# S3 method for double
vec_ptype2.rvar(x, y, ...)

# S3 method for double
vec_cast.rvar(x, to, ...)

# S3 method for rvar
vec_ptype2.integer(x, y, ...)

# S3 method for integer
vec_ptype2.rvar(x, y, ...)

# S3 method for integer
vec_cast.rvar(x, to, ...)

# S3 method for rvar
vec_ptype2.logical(x, y, ...)

# S3 method for logical
vec_ptype2.rvar(x, y, ...)

# S3 method for logical
vec_cast.rvar(x, to, ...)

Arguments

x, y

Vectors.

...

Further arguments passed to other functions.

x_arg, y_arg

Argument names for x and y.

to

Type to cast to.

Value

See the corresponding functions in vctrs-package for more information, or vignette("s3-vector", package = "vctrs") for examples.

See also