Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. mutateDfList = function(list){
  2.  
  3. list$volume = round(list$volume, digits = 2)
  4. list$value = round(list$value, digits = 2)
  5. list$month = factor(list$month, levels = c("Dec", "Jan", "Feb", "Mar", "Apr", "May","Jun", "Jul"))
  6. list %>%
  7. mutate("date" = str_c(day,
  8. month,
  9. ifelse(month == "Dec", 2016, 2017),
  10. sep = "-")
  11. ) %>%
  12. mutate("weekday" = wday(dmy(date), label = TRUE))
  13. }
  14.  
  15. dfList = mutateDfList(dfList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement