Question: In a single R script(a single .R file), create a function that accepts a single argument x and then does all of these on separate
In a single R script(a single .R file), create a function that accepts a single argument x and then does all of these on separate lines:
Add x and 11.
Divide the result of step 1 by 10.
Subtract 10 from the result of step 2.
Divide the result of step 3 by 2.
Returns the result of the calculations. You will then call the function, pass it the value 15 as its argument, and print the function's return value to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
