in Education by
Which of the following statement finds the maximum for each column? (a) apply(x,2,max) (b) col.max(x) (c) which.min(x) (d) which.max(x) I had been asked this question during an interview for a job. Asked question is from Commands topic in chapter Commands, Packages, Visualizing Data and Linear Regression of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The correct answer is (a) apply(x,2,max) The best I can explain: col.max(x) is another way to find which column has the maximum value for each row.

Related questions

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
    Which of the following finds row sums for each level of a grouping variable? (a) as.numeric(x) (b) ... Regression of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following finds the position of a quantile in a dataset? (a) quantile() (b) barplot() (c ... Regression of R Programming Select the correct answer from above options...
asked Feb 11, 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
    ______ finds K best paths in a given graph. (a) kBestShortestPaths (b) kcirt (c) ktrees (d) kmap The ... 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 code will drop the nth column? (a) new...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following code drop the ith and jth column? (a) new...
asked Feb 12, 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 tests each element of x for membership in y? (a) y%in%x (b) all(x) (c) ... Linear Regression of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    which of the following statement chose those objects meeting a logical criterion? (a) sub(dataset,logical) (b) ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    which of the following statement make a mosaic plot? (a) histogram() (b) mosaicplot() (c) bar() (d ... Regression of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    Which of the following statement is another way to get a subset? (a) subsetcon(dataset,logical) (b) data ... of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    Which of the following statement read a tab or space delimited file? (a) read.table(filename,header=TRUE) ( ... of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    Which of the following statement can read csv files? (a) read.table(filename,header=TRUE,sep=',') (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 statement find cases with no missing values? (a) complete...
asked Feb 10, 2022 in Education by JackTerrance
...