Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The program is r markdown 10- # Problem 1 11 12 *The function 'parent.envo' returns the parent environment of an input 13 environment, and if

image text in transcribedimage text in transcribedimage text in transcribed

The program is r markdown

10- # Problem 1 11 12 *The function 'parent.envo' returns the parent environment of an input 13 environment, and if env' is an environment, then ls(envir = env) returns a 14 character vector listing all objects in the environment. Write a function 15 "Is_ancestors that takes an environment 'envir' as an input and returns all 16 object names not just in the input environment but all ancestor environments 17 too. (Hint: your function should use a while loop that terminates when it 18 reaches the ultimate ancestor of all environments: the empty environment, the 19 only environment without an ancestor.) **BEWARE: IF YOUR CODE TAKES LONGER THAN 20 10 SECONDS TO RUN, YOU WILL NOT RECEIVE CREDIT!*** 21 22 - "'{r, error = TRUE} 23 - ls_ancestors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

Students also viewed these Databases questions

Question

Solve for x: 2(3x 1)2(x + 5) = 12

Answered: 1 week ago

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago