Stupid question probably, I'm very new to R.
mtcars2 <- filter(mtcars, contains(integer_vector, mtcars$hp))
I want to filter mtcars by only saving the rows where the value of hp is in the integer_vector. With this code, I get:
Error in contains(integer_vector, mtcars2$hp) :
is_string(match) is not TRUE
Why is that?