in Education by
Which function is more verbose? (a) Lapply (b) Japply (c) Vapply (d) Zapply The question was posed to me in an interview for internship. The question is from Functions 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
The correct answer is (c) Vapply To explain: If a programmer wants the output to be a list then lapply is used. vapply allows the programmer to specific the output type. The disadvantage of using vapply is that it is very difficult to be implemented and more verbose.

Related questions

0 votes
    CRAN package ecosystem has more than ______ packages. (a) 5000 (b) 4000 (c) 6000 (d) 8000 I got this ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    When there are more than one independent variables in the model, then the linear model is termed as _______ (a ... of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which function helps you perform sorting in R language? (a) Order (b) Inorder (c) Simple (d) Library ... Debugging of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    To get the current date, the _______ function will return a Date object which can be converted to a different ... of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    ________ functions can be built which contain all of the necessary data for evaluating the function. (a) ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which function calculates the count of each category of a categorical variable? (a) Table (b) Intact (c) ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which function basically finds the intersection between two different sets of data? (a) Converge (b) Merge (c) ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which function is difficult to implement? (a) Lapply (b) Japply (c) Vapply (d) Zapply I have been asked ... Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which function is used to create a histogram for visualisation in R programming language? (a) Library (b) Hist ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    In the base graphics system, which function is used to add elements to a plot? (a) Boxplot() (b) Text ... Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Which function in R language is used to find out whether the means of 2 groups are equal to each other ... Debugging of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which function is used to select variables and observations from a given dataset? (a) Subset() (b) Sample( ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following builds empirical cumulative distribution function? (a) ecdf() (b) cum (c) cumsum (d ... of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    Which of the following function cross-tabulate tables using formulas? (a) table (b) stem (c) xtabs (d) ... Regression of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which of the following function is used for plotting histogram? (a) hist() (b) histog() (c) histg() ... Regression of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
...