Learn R Programming

erify (version 0.6.0)

back_quote: Back Quote Object

Description

Convert an R object to character and add back quotations.

Usage

back_quote(x, recursive = TRUE, as_double = TRUE)

Value

A character vector.

Arguments

x

An R object.

recursive

Optional. TRUE or FALSE which indicates if to back quote each item of x or to back quote x as a whole, when x is a vector. The default value is TRUE.

as_double

Optional. TRUE or FALSE which indicates if to differentiate between type double and integer. The default value is TRUE, which means integers are handled as doubles.

Examples

Run this code
back_quote(1:3)

back_quote(1:3, recursive = FALSE)

back_quote(1:3, as_double = FALSE)

back_quote(NULL)

back_quote(list(c, 1:3, "a"))

Run the code above in your browser using DataLab