Exec: Execute a Command Given As String

Description Usage Arguments Details Author(s) See Also Examples

View source: R/DescTools.r

Description

Execute a piece of code.

Usage

1
Exec(x)

Arguments

x

the code to be executed

Details

This is just a wrapper to eval and parse, but easier to remember...

Author(s)

Andri Signorell <andri@signorell.net>

See Also

eval, parse

Examples

1
2
3
4
5
A <- "This"
B <- "is"
C <- "a text"
for(s in LETTERS[1:3])
  Exec(gettextf("print(%s)", s))

DescTools documentation built on July 4, 2017, 9:13 a.m.

Search within the DescTools package
Search all R packages, documentation and source code