Learn R Programming

yamlet (version 1.2.1)

vec_ptype2.dvec.double: Find Common Type for dvec, double

Description

Find common type for dvec, double.

Find common type for dvec, double.

Usage

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

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

Arguments

x

dvec

y

double

...

ignored

Examples

Run this code
str(vctrs::vec_ptype2(as_dvec(1), 1))
str(vctrs::vec_ptype2(1, as_dvec(1)))

str(vctrs::vec_ptype2(as_dvec(1, label = 'x'), 1))
str(vctrs::vec_ptype2(1, as_dvec(1, label= 'x')))
str(vctrs::vec_ptype2(as_dvec(1), structure(1, label = 'x')))

str(vctrs::vec_ptype2(as_dvec(1), 1))
str(vctrs::vec_ptype2(1, as_dvec(1)))

str(vctrs::vec_ptype2(as_dvec(1, label = 'x'), 1))
str(vctrs::vec_ptype2(1, as_dvec(1, label= 'x')))
str(vctrs::vec_ptype2(as_dvec(1), structure(1, label = 'x')))

Run the code above in your browser using DataLab