adplus-dvertising
frame-decoration

Question

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, …)

Posted under R Programming

Answer: (d).apply(X, MARGIN, FUN, …)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statement applies the function (FUN) to either rows (1) or columns (2) on object X?

Similar Questions

Discover Related MCQs

Q. Which of the following statement finds the maximum for each column?

Q. Which of the following statement tells the row with the minimum value for every column?

Q. Which of the following may be used for linear regression?

Q. Which of the following sets the size of the outer margins for the graph?

Q. Which of the following function is used for plotting histogram?

Q. Which of the following will add the title “R language” to the graph?

Q. ______ let’s you perform SQL queries on your R data frames.

Q. ______ splits a data frame and results an array.

Q. ________ makes it incredibly easy to fit time series models like ARIMA, ARMA, AR, Exponential Smoothing, etc.

Q. ________ provides needed string operators in R.

Q. Which of the following syntax is used to install forecast package?

Q. Which of the following is similar to Moment.js?

Q. Which of the following is a library for statistical quality control?

Q. ______ specializes in converting data from wide to long format.

Q. _________ is used to convert wide data to long data.

Q. ______ is used to view all packages installed.

Q. ______ is used to get library location in R.

Q. ________ is used to view packages currently loaded.

Q. ________ contains tools for Approximate Bayesian Computation (ABC).

Q. Which of the following package combine multi-dimensional arrays?