A data analyst is working with a data frame named retail. It has separate columns for dollars (price_dollars) and cents (price_cents). The analyst wants to combine the two columns into a single column named price, with the dollars and cents separated by a decimal point. For example, if the value in the price_dollars column is 10, and the value in the price_cents column is 50, the value in the price column will be 10.50. What code chunk lets the analyst create the price column

Respuesta :

The code chunk that lets the analyst create the price column is;

unite(retail, “price”, price_dollars, price_cents, sep=”.”)

The code chunk unite(retail, “price”, price_dollars, price_cents, sep=”.”) is the one that will allow the analyst to create the price column.

The reason for that answer is that;

  • The unite() function would allow the analyst  to make the dollars and cents data to be combined into a single column.
  • Meanwhile, in the parentheses of the given function, the analyst will write the name of the data frame.
  • Next step for the analyst is to write the name of the new column in quotation marks.
  • Next step is the names of the two columns they want to combine.
  • Lastly, the argument sep=”.” will now place a decimal point between the dollars and cents data given in the price column.

Read more about programming at; https://brainly.com/question/15683939