Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

otype

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

Tools for Computing on the Language

v0.1.4
GPL-2
Authors
Hadley Wickham [aut, cre], R Core team [ctb] (Some code extracted from base R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.