I have an assignment where I need to use the subset() function on the iris dataset in R. Specifically, I have to work with only two of the three Species variables, setosa, virginica, versicolor. Somehow, I cant get the subset function to pick more than one of these if I attempt to make a new dataframe where I only have setosa and virginica. How do I subset more than one of a categorical variable?
Thank you so much for any help.