in Education by
Which of the following statement is another way to get a subset? (a) subsetcon(dataset,logical) (b) data.df[data.df=logical] (c) sub(dataset,logical) (d) subcon(dataset,logical) The question was posed to me by my college director while I was bunking the class. I want to ask this question from Commands in division 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) data.df[data.df=logical] Explanation: subset(data.df,select=variables,logical) get those objects from a data frame that meet a criterion.

Related questions

0 votes
    ____________ is one type of the simplest machine learning classification algorithms that is a subset of supervised ... R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    __________ function takes various parameters like formula, data, subset, labels, etc. (a) Pears (b) Pairs (c ... of R Programming Select the correct answer from above options...
asked Feb 13, 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 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
    which of the following statement gives cumulative sum? (a) cumsum(x,na=rm=TRUE) (b) cumprod(x) (c) ... Regression of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    ________ function is usually used inside another function and throws a warning whenever a particular package is not ... R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    __________ is the best way for communicating the results of data analysis using the R language. (a) Single ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    To get the current date, the _______ function will return a Date object which can be converted to a different ... of R Programming Select the correct answer from above options...
asked Feb 16, 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
...