Learn R Programming

backports (version 1.5.0)

str2expression: Backport of str2expression for R < 3.6.0

Description

See the original description in base::str2expression.

Usage

str2expression(text)

Arguments

Examples

Run this code
# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
str2expression <- getFromNamespace("str2expression", "backports")

str2expression("x[3] <- 1+4")

Run the code above in your browser using DataLab