Skip to contents

Know the type of an object.

Usage

s_type(.x, .abbr = FALSE)

s_unit(.x)

Arguments

.x

An object.

.abbr

A logical. If TRUE, the abbreviation of the type is returned.

Value

A character.

Examples

s_type(1:10)
#> [1] "integer"
s_type(letters)
#> [1] "character"