Answered step by step
Verified Expert Solution
Question
1 Approved Answer
20. An analyst developed the following function in R TimesTwo
20. An analyst developed the following function in R
TimesTwo<-function(x)
{
return (x*2)
}
If the analyst added the command print("Thank you for using this function") below return (x*2) in the function above
What would she see if she executes TimesTwo(1) in R?
A) NA
B) 2
C) return (x*2)
D) 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started