object_type: Identify the class, type, etc of an object

View source: R/object_type.R

object_typeR Documentation

Identify the class, type, etc of an object

Description

Extract the class (or type) of an object for use in error messages.

Usage

object_type(x)

Arguments

x

An object to test.

Value

A length-1 character vector describing the class of the object.

Examples

object_type("a")
object_type(1L)
object_type(1.1)
object_type(mtcars)
object_type(rlang::quo(something))

stbl documentation built on May 29, 2024, 5:52 a.m.