Question: write R code without using libraries Project s description This project is about analyzing a function definition. More precisely, it is about taking a function
write R code without using libraries
Projects description
This project is about analyzing a function definition. More precisely, it is about taking a functions definition and returning a data frame with two columns. The first one contains all symbols used in the functions definition, and the second one has either the environments name containing the definition of the symbol or a description of the symbols type, eg locally defined, given as argument, etc.
Technically, you must define a function listSymbols taking a single argument f and returning a data frame. It is assumed that the function f is a closure not a builtin, as those are compiled functions and we cannot see their code from the level of pure R language The following examples present the particular functionalities of the required function.
listSymbolsf plot.default
symbol definition
base
arg
base
base
base
$ base
ann arg
asp arg
axes arg
Axis graphics
box graphics
deparse base
dev.flush imports:graphics
dev.hold imports:graphics
frame.plot arg
function base
if base
invisible base
isfinite base
isnull base
localAxis locally defined
localBox locally defined
localTitle locally defined
localWindow locally defined
log base
main arg
missing base
onexit base
panel.first arg
panel.last arg
plot.new graphics
plot.window graphics
plot.xy graphics
range base
sub base
substitute base
title graphics
type arg
x arg
xgap.axis arg
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
