Just try:
A %in% Targets
The %in%
function tells you if each element of the first argument equals one of the elements of the second argument, that’s exactly what you are looking for.
More Related Contents:
- How to sort a character vector where elements contain letters and numbers in R?
- Filter rows which contain a certain string
- Apply function conditionally
- Gantt charts with R
- Splitting a continuous variable into equal sized groups
- customize ggplot2 axis labels with different colors
- Select every nth row from dataframe
- Is set.seed consistent over different versions of R (and Ubuntu)?
- Append data frames together in a for loop
- Can’t download data from Yahoo Finance using Quantmod in R
- Splitting a data.frame by a variable [duplicate]
- Advantages of reactive vs. observe vs. observeEvent
- Creating regular 15-minute time-series from irregular time-series
- Efficiently computing a linear combination of data.table columns
- Rounding numbers in R to specified number of digits
- Unlist a data frame by rows, not columns
- How to add table of contents in Rmarkdown?
- How do you delete a column by name in data.table?
- Applying a function to two lists?
- Merging two sets of data by data.table roll=’nearest’ function
- R: xtable and dates
- Using R to read out excel-colorinfo
- Existing function for seeing if a row exists in a data frame?
- Different Robust Standard Errors of Logit Regression in Stata and R
- dynamically add function to r6 class instance
- How to grep a word exactly
- Convert comma separated string to integer in R
- Difference between Boolean operators && and & and between || and | in R
- Interpolating timeseries
- Image not showing in Shiny app R