If I understand correctly, you need the negation of the %in%
operator. Something like this should work:
subset(b, !(y %in% a$x))
> subset(b, !(y %in% a$x))
y
5 5
6 6
More Related Contents:
- how to create a dataframe in R from ” Min. 1stQu Median Mean 3rdQu Max. NA’s”? [closed]
- Combine a list of data frames into one data frame by row
- How do I replace NA values with zeros in an R dataframe?
- How to split a data frame?
- count number of rows in a data frame in R based on group [duplicate]
- Dictionary style replace multiple items
- How to plot all the columns of a data frame in R
- Opposite of %in%: exclude rows with values specified in a vector
- Select rows with min value by group
- Shifting non-NA cells to the left
- Omit rows containing specific column of NA
- Repeat rows of a data.frame N times
- For each row in an R dataframe
- How to add a cumulative column to an R dataframe using dplyr?
- Get last row of each group in R [duplicate]
- Same function over multiple data frames in R
- Create empty data frame with column names by assigning a string vector? [duplicate]
- Dataframe create new column based on other columns
- Last Observation Carried Forward In a data frame? [duplicate]
- Determine the data types of a data frame’s columns
- Select rows from one data.frame that are not present in a second data.frame
- How to sort all dataframes in a list of dataframes on the same column?
- Cleaning `Inf` values from an R dataframe
- Finding non-numeric data in a data frame or vector
- Replace all NA with FALSE in selected columns in R
- Find columns with all missing values
- How to transpose a dataframe in tidyverse?
- Deleting every n-th row in a dataframe
- Replace specific values based on another dataframe
- How to convert certain columns only to numeric?