Home / MCQ Bank / Computer
Computer Data Manipulation With Dplyr

How do you rename a column named old_name to new_name in dplyr?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • rename(vars(old_name = new_name))

Related Computer Questions

What will be the output of the following Java program? class Output { public static void main(String args[]) { String str = "true false"; boolean x = Boolean.parseBoolean(str); System.out.print(x); } } Comment on an array of the void data type. How many types do functions fall depends on modularization? What will be the output of the following R code snippet? > f <- function(a, b) { + a^2 + } > f(2) What will be the output of the following C++ code? #include <iostream> using namespace std; void Values(int n1, int n2 = 10) { using namespace std; cout << "1st value: " << n1; cout << "2nd value: " << n2; } int main() { Values(1); Values(3, 4); return 0; }