Exercise

filter with !=

We can remove rows using the != operator. For example to remove Florida we would do this:

no_florida <- filter(murders, state != "Florida")

Instructions

100 XP
  • Create a new data frame called no_south that removes states from the South region.
  • How many states are in this category? You can use the function nrow for this.