R/utilities-diagnostics.R
getSexpType.Rd
Get the type code for a SEXP, as returned by the TYPEOF macro
getSexpType(sexp)
an R object
the type code, an integer, as defined in Rinternals.h
getSexpType(1) #> [1] 14 getSexpType("a") #> [1] 16 getSexpType(1:10) #> [1] 13