Learn R Programming

rray (version 0.0.0.9000)

vec_type_container2: Find the container type of a pair of vectors

Description

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

Usage

vec_type_container2(x, y)

# S3 method for default vec_type_container2(x, y)

vec_type_container2.logical(x, y)

vec_type_container2.integer(x, y)

vec_type_container2.double(x, y)

vec_type_container2.character(x, y)

vec_type_container2.vctrs_rray(x, y)

Arguments

x, y

Vectors.

Examples

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

# vec_type_container2(1, rray(2L))

# }

Run the code above in your browser using DataLab