BBmisc (version 1.10)

asQuoted: Converts a string into a quoted expression.

Description

Works the same as if you would have entered the expression and called quote on it.

Usage

asQuoted(s, env = parent.frame())

Arguments

s
[character(1)] Expression as string.
env
[numeric(1)] Environment for expression. Default is parent.frame()

Value

Quoted expression.

Examples

Run this code
asQuoted("x == 3")

Run the code above in your browser using DataLab