Guest User

Untitled

a guest
May 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. narrow_ds # ... initialization of dataframe
  2. library(dplyr)
  3. narrow_ds <- bind_cols(narrow_ds, (narrow_ds %>%
  4. select(starts_with("eng")) %>% mutate(eng=rowMeans(., na.rm=TRUE))) %>%
  5. select(eng))
Add Comment
Please, Sign In to add comment