Question 8 A data analyst is working with a data frame named stores. It has separate columns for city (city) and state (state).
The analyst wants to combine the two columns into a single column named location, with the city and state separated by a comma. What code chunk lets the analyst create the location column
The programing language, Rhas a unite unitefunction in the tidyrpackage. Hence, the codechunk which let's the analyst create the locationcolumn is; <em>unite (stores, "location”, city, state, sep=",") </em>
The syntaxfor the unite function is ; unite(data,col,..., sep)