otype: Determine object type.

View source: R/otype.r

otypeR Documentation

Determine object type.

Description

Determine object type.

Usage

otype(x)

Arguments

x

object to determine type of

Details

Figure out which object system an object belongs to:

  • base: no class attribute

  • S3: class attribute, but not S4

  • S4: isS4, but not RC

  • RC: inherits from "refClass"

See Also

Other object inspection: ftype(), sexp_type()

Examples

otype(data.frame())
otype(1:10)

pryr documentation built on Jan. 18, 2023, 1:08 a.m.

Related to otype in pryr...