Strangely I cannot use dplyr with my current application, due to it masking certain features of a couple of other packages I have loaded.
Is there a way I can subset 'Asia' and 'Africa' using the subset function? If I try something like this with one variable, Asia, it works :
newdata <- subset(gapminder, continent=="Asia")
Then I can make the plot based off this. However, I can't seem to do it for two variables - this does not work :
newdata <- subset(gapminder, continent=="Asia" | "Africa")
Also, I'm not sure if I should be using the logical operator | or &.