myFunc = function (x, y = 2) {z = 7 } z+x^2+y Assuming that this was the first thing entered in a new R session, if the next command entered is z+1, what is the output? O 8. ● An error, z does not exist. O 10. O 7.

College Accounting, Chapters 1-27
23rd Edition
ISBN:9781337794756
Author:HEINTZ, James A.
Publisher:HEINTZ, James A.
Chapter5: Adjusting Entries And The Work Sheet
Section: Chapter Questions
Problem 4CE
icon
Related questions
Question
myFunc = function (x, y = 2)
{z = 7
}
z+x^2+y
Assuming that this was the first thing entered in a new R session, if the next command entered is z+1, what is the output?
O 8.
● An error, z does not exist.
O 10.
O 7.
Transcribed Image Text:myFunc = function (x, y = 2) {z = 7 } z+x^2+y Assuming that this was the first thing entered in a new R session, if the next command entered is z+1, what is the output? O 8. ● An error, z does not exist. O 10. O 7.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution