Re: [R] Logic operators...more than one??

2018-10-03 Thread Bert Gunter
Inline. -- Bert Bert Gunter "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 wrote: > I'm sure this is a simple question but I'm no

Re: [R] Logic operators...more than one??

2018-10-03 Thread Marc Schwartz via R-help
> On Oct 3, 2018, at 7:03 PM, David Doyle wrote: > > 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 a

Re: [R] Logic operators...more than one??

2018-10-03 Thread Jim Lemon
Hi David, I think you want this: SampledWells <- MyData[!( MyData$Location %in% c("MW-09", "MW-10")), ] Jim On Thu, Oct 4, 2018 at 9:02 AM David Doyle wrote: > > 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 w

[R] Logic operators...more than one??

2018-10-03 Thread David Doyle
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