Question: Add a column to the mtcars data called Model which uses the row names of mtcars (rownames (mtcars) ) as its values. Show me the
Add a column to the mtcars data called Model which uses the row names of mtcars (rownames (mtcars) ) as its values. Show me the head of the data frame to see if it's been done correctly. Note, to add a column to a data frame, we can specify yourdfsnew_col_name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
