[R] Logic operators...more than one??
bgunter@4567 @end|ng |rom gm@||@com
Thu Oct 4 01:20:48 CEST 2018
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Oct 3, 2018 at 4:02 PM David Doyle <kydaviddoyle using gmail.com> wrote:
> I'm sure this is a simple question but I'm not sure where to find the
Good R tutorials abound on the internet. One resource is:
but there are tons more if you search.
> 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", ]
SampledWells <- MyData[ MyData$Location %in% c( "MW-09", "MW-10", "MW-11"),
> Thank you for your time
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help