I currently have a set of values in one table, and I would like to find these values in another larger table and filter the rows so that only rows containing these values remain.
I've tried using filter(), but it keeps erroring by saying longer object length is not a multiple of shorter object length. Not sure if this is part of the reason it doesn't work, but filter works if I plug in each value individually rather than trying to filter for the whole set of values at once.
filter(table1, table1$desiredvalues==table2$generalvalues)
I was expecting an output of all the values from table1 found in table2, but it only showed a very small subset of values from table1 for some reason.