Learn R Programming

dipsaus (version 0.3.1)

sexp_type2: Get Internal Storage Type

Description

Get internal (C) data types; See https://cran.r-project.org/doc/manuals/r-release/R-ints.pdf Page 1 for more different SEXPTYPEs.

Usage

sexp_type2(x)

# S3 method for sexp_type2 as.character(x, ...)

# S3 method for sexp_type2 print(x, ...)

Value

An integer of class "sexp_type2"

Arguments

x

any R object

...

ignored

See Also

Examples

Run this code

# 1 vs 1L

# Integer case
sexp_type2(1L)

# double
sexp_type2(1)

# Built-in function
sexp_type2(`+`)

# normal functions
sexp_type2(sexp_type2)

# symbols (quoted names)
sexp_type2(quote(`+`))

# Calls (quoted expressions)
sexp_type2(quote({`+`}))


Run the code above in your browser using DataLab