1.

Point out the wrong statement?(a) Renaming a variable in a data frame in R is surprisingly hard to do(b) The mutate() function exists to compute transformations of variables in a data frame(c) mute() function, which does the same thing as mutate() but then drops all non-transformed variables(d) The data frame is a key data structure in statistics and in RThis question was addressed to me in semester exam.Asked question is from dplyr topic in section R – Data Storage, Formats, Objects and Operations of R Programming

Answer»

The CORRECT option is (c) mute() FUNCTION, which does the same thing as mutate() but then drops all non-transformed variables

Easy EXPLANATION: The rename() function is designed to make this process EASIER.



Discussion

No Comment Found

Related InterviewSolutions