Created
December 9, 2020 08:46
-
-
Save cutterkom/2780e2317f1ccf798336e77a9d1354e8 to your computer and use it in GitHub Desktop.
get column stored as variable in R, alternative zu eval()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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