vector_type: Determine the "type" of a vector

View source: R/vector_type.R

vector_typeR Documentation

Determine the "type" of a vector

Description

The vector_type collapses down the class of base vectors into something useful more for visualisation, yielding one of "datetime", "numeric", "ordinal", "nominal" or "logical".

Usage

vector_type(x)

Arguments

x

a vector

See Also

default_scale, which uses this when picking the default scale.


ggvis documentation built on March 31, 2023, 7:13 p.m.