R

Asked • 08/20/19

Opposite of %in%?

A categorical variable V1 in a data frame D1 can have values represented by the letters from A to Z. I want to create a subset D2, which excludes some values, say, B, N and T. Basically, I want a command which is the opposite of `%in%` D2 = subset(D1, V1 %in% c('B','N',T'))

1 Expert Answer

By:

Jacob I. answered • 08/20/19

Tutor
5 (19)

Experienced Data Science Professional and Python Programmer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.