Learn R Programming

rray (version 0.0.0.9000)

vec_ptype_container2: Find the container type of a pair of vectors

Description

vec_ptype_container2() finds the common container type of two vectors. Like vec_ptype2(), vec_ptype_container2() powers coercion but should usually not be called directly. Instead, vec_ptype_container_common() should be used.

Usage

vec_ptype_container2(x, y)

# S3 method for default vec_ptype_container2(x, y)

vec_ptype_container2.logical(x, y)

vec_ptype_container2.integer(x, y)

vec_ptype_container2.double(x, y)

vec_ptype_container2.character(x, y)

vec_ptype_container2.vctrs_rray(x, y)

Arguments

x, y

Vectors.

Examples

Run this code
# NOT RUN {
# vec_ptype_container2(1, 2L)

# vec_ptype_container2(1, rray(2L))

# }

Run the code above in your browser using DataLab