Skip to content

Instantly share code, notes, and snippets.

@cutterkom
Created Dec 9, 2020
Embed
What would you like to do?
get column stored as variable in R, alternative zu eval()
# get column stored as variable
# alternative to eval()
column <- "name"
df %>% filter(get(column)==1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment