Try this
subset(data, !(v1 %in% c("b","d","e")))
More Related Contents:
- Filter data.frame rows by a logical condition
- Subset data frame based on number of rows per group
- Opposite of %in%: exclude rows with values specified in a vector
- How to drop columns by name in a data frame
- Subset / filter rows in a data frame based on a condition in a column
- How do I extract a single column from a data.frame as a data.frame?
- Filtering a data frame on a vector [duplicate]
- Subset data frame based on multiple conditions [duplicate]
- Subset of rows containing NA (missing) values in a chosen column of a data frame
- dplyr – filter by group size
- How to subset data in R without losing NA rows?
- Using grep to help subset a data frame
- Filter data frame rows based on values in vector
- Selecting columns in R data frame based on those *not* in a vector
- Return df with a columns values that occur more than once [duplicate]
- Undefined columns selected when subsetting data frame
- Replace values in a dataframe based on lookup table
- Sample random rows in dataframe
- Replacing character values with NA in a data frame
- Merge two data frames while keeping the original row order
- Why am I getting X. in my column names when reading a data frame?
- Creating a summary statistical table from a data frame
- Add an index (numeric ID) column to large data frame [duplicate]
- Convert a dataframe to a vector (by rows)
- Replace empty values with value from other column in a dataframe
- Identify records in data frame A not contained in data frame B [closed]
- Replace value with the name of its respective column
- Numbers as column names of data frames
- How to pass “nothing” as an argument to `[` for subsetting?
- Divide each value by the sum of values by group