iclass: Determine implicit class.

iclassR Documentation

Determine implicit class.

Description

iclass determines the implicit class of a base type. The code is taken from the great "Advanced R" by Hadley Wickham.

Usage

iclass(x)

Arguments

x

base type

Value

A vector describing the implicit class of 'x'.

Author(s)

Tomas Sieger

References

Wickham, Hadley. _Advanced R_. Available online at http://adv-r.had.co.nz/OO-essentials.html

Examples

iclass(matrix(1:5))
#> [1] "matrix"  "integer" "numeric"

iclass(array(1.5))
#> [1] "array"   "double"  "numeric"

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.