Get startedGet started for free

Filtering model terms

You currently have both the intercept and slope terms for each by-country model. You're probably more interested in how each is changing over time, so you want to focus on the slope terms.

This exercise is part of the course

Case Study: Exploratory Data Analysis in R

View Course

Exercise instructions

  • Print the country_coefficients data frame to the console.
  • Perform a filter() step that extracts only the slope (not intercept) terms.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Print the country_coefficients dataset


# Filter for only the slope terms
Edit and Run Code