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

iclass(x)

Arguments

x

base type

Value

A vector describing the implicit class of 'x'.

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"
#> [1] "matrix" "integer" "numeric" iclass(array(1.5))
#> [1] "array" "double" "numeric"
#> [1] "array" "double" "numeric"