in Education by
_________ require you to pass a function whose argument is a vector of parameters. (a) optimize() (b) optimise() (c) opt() (d) opm() I had been asked this question in final exam. This intriguing question comes from Scoping Rules in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Right option is (c) opt() Easy explanation: Optimization routines in R like optim(), nlm(), and optimize() require you to pass a function.

Related questions

0 votes
    You can check to see whether an R object is NULL with the _________ function. (a) is.null() (b) is. ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    If the programmers want the output to be a data frame or a vector, then ________ function is used. (a) ... Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    What will be the class of the vector if you concatenate a number and a character? (a) Number (b) ... Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    What will be the class of the vector if you concatenate a number and NA? (a) Number (b) Character (c ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    How will you check if an element is present in a vector? (a) Match() (b) Dismatch() (c) Mismatch() ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    __________ function takes various parameters like formula, data, subset, labels, etc. (a) Pears (b) Pairs (c ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    _________ is an indication that a fatal problem has occurred and execution of the function stops. (a) message (b ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    A matrix of scatterplots can be produced using _________ function. (a) Pears (b) Pairs (c) Tears (d) ... Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Warnings are generated by the _________ function. (a) warning() (b) error() (c) run() (d) message() ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    If two vectors with different lengths perform some operation, the elements of the shorter vector will be used ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    _____________ will produce a sequential vector c( (1,2,3,4,5,6,7,8,9)). (a) Seq(9) (b) Seq ... Functions and Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which of the following code create a n item vector of random normal deviates? (a) x1...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following finds the maximum value in the vector x, exclude missing values? (a) rm(x) (b) ... Regression of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    ________ performs class prediction based on microarray data and clinical parameters (a) M3 (b) M2 (c) MAclinical ... of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
...