Skip to contents

Returns type of vector (character, factor, date, numeric).

Usage

type(x)

Arguments

x

A vector.

Value

A string from c("character", "factor", "date", "numeric", "unknown")

Examples

#----------------------------------------------------------------------------
# type() examples.
#----------------------------------------------------------------------------
library(bkmisc)

type(1)
#> [1] "numeric"