Learn R Programming

BBmisc (version 1.13)

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())

Value

Quoted expression.

Arguments

s

[character(1)]
Expression as string.

env

[numeric(1)]
Environment for expression. Default is parent.frame()

Examples

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

Run the code above in your browser using DataLab