Google News
logo
R - Quiz(MCQ)
Which of the following statement is another way to get a subset?
A)
sub(dataset,logical)
B)
subcon(dataset,logical)
C)
data.df[data.df=logical]
D)
subsetcon(dataset,logical)

Correct Answer :   data.df[data.df=logical]


Explanation : subset(data.df,select=variables,logical) get those objects from a data frame that meet a criterion.

Advertisement