in Education by
Which of the following statement applies the function (FUN) to either rows (1) or columns (2) on object X? (a) apply(x,1,min) (b) apply(x,2,max) (c) col.max(x) (d) apply(X, MARGIN, FUN, …) I have been asked this question in quiz. This intriguing question comes from Commands in portion Commands, Packages, Visualizing Data and Linear Regression of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Correct option is (d) apply(X, MARGIN, FUN, …) To explain I would say: apply(x,2,max) finds the maximum for each column.

Related questions

0 votes
    Which of the following will reverse the order of values in x? (a) rev(x) (b) max(x, na.rm=TRUE) ... Linear Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Predicting y for a value of x that's outside the range of values we actually saw for x in the original ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Which function is used for loading packages? (a) Library (b) Interface (c) Loader (d) Linker The ... Regression of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which function is used for seeing currently active libraries? (a) Curlib() (b) Currlib() (c) .libpaths( ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Function used for linear regression in R is __________ (a) lm(formula, data) (b) lr(formula, data) (c) ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    In practice, Line of best fit or regression line is found when _____________ (a) Sum of residuals (∑(Y ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Which of the following is Mac menu command? (a) browse.workspace (b) browse.works (c) browser.workspace ... of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which of the following will add the title R language to the graph? (a) titleAdd( R language ) (b ... 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 is a library for statistical quality control? (a) gcc (b) qcc (c) anc (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 is one of the most important aspects of a good package? (a) Title (b) ... 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 method make vector of repeated values? (a) rep() (b) data() (c) view() (d ... Linear 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 finds row sums for each level of a grouping variable? (a) rowSums (x, na.rm = ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Which of the following is lattice command for producing a scatterplot? (a) plot() (b) lm() (c) xyplot( ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Which of the following determine the least-squares regression line? (a) histo() (b) lm (c) barlm() (d ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Which of the following is similar to Moment.js? (a) stringr (b) lubridate (c) ploy (d) forecast The ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
...