vctrs (version 0.0.0.9000)

vec_type_string: Vector type as a string

Description

Provide a method for this generic to control how your vector type is printed. The default method uses the first element of the class vector. Override this method if your class has parameters that should be prominently displayed.

Usage

vec_type_string(x)

Arguments

x

A vector.

Value

A string.

Examples

Run this code
# NOT RUN {
cat(vec_type_string(1:10))
cat(vec_type_string(iris))
# }

Run the code above in your browser using DataLab