We can remove rows using the != operator. For example, to remove Florida, we would do this:
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.
We can also use %in% to filter with dplyr. You can therefore see the data from New York and Texas like this:
Create a new data frame called murders_nw with only the states from the Northeast and the West. How many states are in this category?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here