Reputation: 465
given this situation
id = "a"
df <- tibble(
id = c("a", "b", "c"),
value = c(1, 2, 3)
)
df %>% dplyr::filter(id == id)
I expected the last line to have the same output as df %>% dplyr::filter(id == "a")
but it still refers to id
as a df column and not as a variable. Can I enforce it to look for the variable id
?
Upvotes: 11
Views: 1317