The str() function displays the structure of your data set. It tells you the following about a data frame: The number of observations in total (e.g. 32 car types) The number of variables in total (e.g. 11 car features) The names of all the variables are listed below (e.g. mpg , cyl ... )