Learn R Programming

rray (version 0.1.0)

vec_arith.vctrs_rray: vctrs compatibility functions

Description

These functions are the extensions that allow rray objects to work with vctrs.

Usage

# S3 method for vctrs_rray
vec_arith(op, x, y)

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

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

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

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

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

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

Arguments

op

An arithmetic operator as a string.

x, y

Objects.

...

Used to pass along error message information.

to

Type to cast to.

Value

See the corresponding vctrs function for the exact return value.