how can i exclude small data in r?

i would do this:

library(dplyr)

x <- x %>%
filter(Location != "Africa", Location != "Asia", Location != "Europe")

sort(unique(x$Location))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top