Question: A data analyst is working with a data frame named weather. It has separate columns for temperatures ( temp ) and measurement units ( unit

A data analyst is working with a data frame named weather. It has separate columns for temperatures (temp) and measurement units (unit). The analyst wants to combine the two columns into a single column called display_temp, with the temperature and unit separated by the string Degrees . What code chunk lets the analyst create the display_temp column?
1 point
weather %>% unite(weather, "display_temp", weather, temp, delim =" Degrees ")
weather %>% unite(" Degrees ", weather, temp, "display_temp")
unite(weather, "display_temp", temp, unit, sep =" Degrees ")
unite(" Degrees ", weather, temp, "display_temp")

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!