Learn R Programming

stbl (version 0.1.1)

object_type: 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)

Value

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

Arguments

x

An object to test.

Examples

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

Run the code above in your browser using DataLab