Skip to contents

Simple class of object

Usage

simpleClass(x)

Arguments

x

Object.

Value

character(1). Primary class of object, as a simple string.

Details

Doesn't return structure information, including the parent package that defines the class, which is common for S4 classes.

Primarily intended for unit testing in other packages.

Note

Updated 2021-08-04.

Examples

df <- data.frame()
simpleClass(df)
#> [1] "data.frame"