str2expression: Backport of str2expression for R < 3.6.0

Description Usage Examples

View source: R/str2expression.R

Description

See the original description in base::str2expression.

Usage

1

Examples

1
2
3
4
5
# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
str2expression <- getFromNamespace("str2expression", "backports")

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

Example output

expression(x[3] <- 1 + 4)

backports documentation built on Dec. 13, 2021, 5:08 p.m.