Learn R Programming

do (version 1.9.0.0)

exec: execute string command This command just execute in the paraent frame.

Description

execute string command This command just execute in the paraent frame.

Usage

exec(string, envir = parent.frame())

Arguments

string

one string

envir

the environment in which sting is to be evaluated.

Value

execute string command

Examples

Run this code
# NOT RUN {
a=2
exec('a = 1')
a
# }

Run the code above in your browser using DataLab