Exploratory Data Analysis of One Categorical Explanatory Variable

Learn about analyzing categorical data to make observations that will help in regression.

The data on the 142 countries can be found in the gapminder data frame included in the gapminder package. However, to keep things simple, let’s filter() for only those observations/rows corresponding to the year 2007. Additionally, let’s select() only the subset of the variables we’ll consider. We’ll save this data in a new data frame called gapminder2007, as follows:

Get hands-on with 1400+ tech skills courses.