a) subsett b) eval c) switch d) set Answer: b Explanation: eval(x[[condition]]) is the best way to ...
View QuestionWhich of the following statement can be used to explicitly control looping?
a) if b) while c) break d) for Answer: c Explanation: The break statement causes an exit ...
View Question_______ is used to break the execution of a loop.
a) next b) skip c) break d) delete Answer: c Explanation: Control structures allow you to respond ...
View QuestionPoint out the wrong statement?
a) for will execute a loop a fixed number of times b) break will execute a loop while ...
View QuestionWhich of the following R syntax is correct for while loop?
a) while ( statement1 ) statement2 b) while ( statement1 ) else statement2 c) while ( statement1 ) ...
View QuestionPoint out the correct statement?
a) Blocks are evaluated until a new line is entered after the closing brace b) Single statements are ...
View QuestionWhich of the following function is similar to summarize?
a) arrange_by() b) group() c) group_by() d) arrange Answer: c Explanation: The dplyr package provides a ...
View Questiondplyr can be integrated with the ________ package for large fast tables.
a) data.table b) read.table c) data.data d) table.read Answer: a Explanation: The dplyr package is handy way ...
View QuestionPoint out the wrong statement?
a) Renaming a variable in a data frame in R is surprisingly hard to do b) The mutate() ...
View QuestionColumns can be arranged in descending order too by using the special ____ operator.
a) asc() b) desc() c) descending() d) subset Answer: b Explanation: This will sort the order in ...
View Question