Question: A data analyst is working with a data frame named sales. They write the following code: sales % > % The data frame contains a

A data analyst is working with a data frame named sales. They write the following code:
sales %>%
The data frame contains a column named q1_sales. What code chunk does the analyst add to change the name of the column from q1_sales to quarter1_sales?
1 point
rename(quarter1_sales <-q1_sales)
rename(quarter1_sales = q1_sales)
rename(q1_sales == quarter1_sales)
rename(q1_sales <-quarter1_sales)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!