Skip to content

Tells you if you're dealing with an base, S3, S4, RC, or R6 object.

Usage

otype(x)

Arguments

x

An object

Examples

otype(1:10)
#> [1] "base"
otype(mtcars)
#> [1] "S3"