in Education by
which of the following statement gives cumulative sum? (a) cumsum(x,na=rm=TRUE) (b) cumprod(x) (c) cummax(x) (d) cummin(x) I got this question during an internship interview. This is a very interesting question from Commands in section Commands, Packages, Visualizing Data and Linear Regression of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Right option is (a) cumsum(x,na=rm=TRUE) The explanation is: cummax() function returns the cumulative maxima.

Related questions

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
    The cumulative frequency distribution of a categorical variable can be checked using the ________ function in R ... R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    ___________ function gives an error message if the desired package cannot be loaded. (a) Dplyr (b) Require (c ... of R Programming Select the correct answer from above options...
asked Feb 16, 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 finds the maximum for each column? (a) apply(x,2,max) (b) col.max(x ... 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 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
0 votes
    Point out the correct statement? (a) R has a number of ways to indicate to you that something's not ... Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Point out the wrong statement? (a) The order of the packages on the search list does not matter (b) R ... Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Point out the correct statement? (a) An environment is a collection of (symbol, value) pairs, i.e. x is ... Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Point out the wrong statement? (a) The primary task of debugging any R code is correctly diagnosing what the ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Point out the correct statement? (a) The search list can be found by using the searchlist() function (b) ... Debugging of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
...