In the previous question, we saw the different variables that are a part of this dataset from the output of the str
function. The function names
is specifically designed to extract the column names from a data frame.
For this question, we will use the names
function to extract the column names of the murders data frame.