I'm sure this is a simple question but I'm not sure where to find the
answer.

I want to remove some of the data.  For example when my Location column is
MW-09, MW-10, or MW-11.

It works fine if I ONLY list ONE of the locations as in:

SampledWells <- MyData[ MyData$Location != "MW-09", ]

But if I try to do more than one (as shown below), I don't get an error but
I also don't get my SampledWells
SampledWells <- MyData[ MyData$Location != "MW-09", "MW-10", ]

Thoughts??

Thank you for your time
David

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to