in Education by
Which of the following finds row sums for each level of a grouping variable? (a) as.numeric(x) (b) rowsum(x, group, reorder = TRUE, …) (c) as.order(x) (d) colSums (x, na.rm = FALSE, dims = 1) The question was posed to me in examination. This is a very interesting question 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 choice is (b) rowsum(x, group, reorder = TRUE, …) Explanation: rowsum compute column sums across rows of a numeric matrix-like object for each level of a grouping variable.

Related questions

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 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 adds marginal sums to an existing table? (a) par() (b) prop.table() (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 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 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 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
    __________ function is used in applying a function each level of factors. (a) With() (b) By() (c) To ... and Debugging of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Which of the following groups values of a variable into larger bins? (a) cut (b) col.max(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 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
    ______________ function will measure the probability of the binary response variable in R language. (a) Glm() (b) ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    ______________ measures the probability of the binary response variable in R language. (a) Logical Regression (b) ... of R Programming Select the correct answer from above options...
asked Feb 15, 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
    How many coefficients do you need to estimate in a simple linear regression model (One independent variable)? (a) ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
...