Learn R Programming

do (version 2.0.0.1)

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

Value

execute string command

Arguments

string

one string

envir

the environment in which sting is to be evaluated.

Examples

Run this code
a=2
exec('a = 1')
a

Run the code above in your browser using DataLab