Learn R Programming

sloop (version 1.0.1)

otype: Determine the type of an object

Description

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

Usage

otype(x)

Arguments

x

An object

Examples

Run this code
# NOT RUN {
otype(1:10)
otype(mtcars)
# }

Run the code above in your browser using DataLab