Skip to content

Instantly share code, notes, and snippets.

@tchakravarty
Created November 7, 2016 06:20
Show Gist options
  • Save tchakravarty/cf3a88b53d72fc5d8a282b5f5bb7d63c to your computer and use it in GitHub Desktop.
Save tchakravarty/cf3a88b53d72fc5d8a282b5f5bb7d63c to your computer and use it in GitHub Desktop.
Add names to multiple new variables created using mutate_each
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