Created
November 7, 2016 06:20
-
-
Save tchakravarty/cf3a88b53d72fc5d8a282b5f5bb7d63c to your computer and use it in GitHub Desktop.
Add names to multiple new variables created using mutate_each
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
library(wakefield) | |
df_foo = r_series(rnorm, 10, 1000) | |
# create quantized versions of base variables | |
df_foo %>% | |
mutate_each( | |
funs(Quantized = . > 0) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment