Guest User

Untitled

a guest
Aug 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. > crime
  2. # A tibble: 8 x 8
  3. iso year theft robbery burglary theft_price robbery_price burglary_price
  4. <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
  5. 1 ALB 2003 3694 199 874 32.9 115 49.3
  6. 2 ALB 2004 3694 199 874 38.2 134 57.3
  7. 3 ALB 2005 3694 199 874 42.8 150 64.2
  8. 4 ALB 2006 3450 164 779 47.0 165 70.5
  9. 5 AUS 2003 722334 14634 586266 408.4 1427 612.4
  10. 6 AUS 2004 636717 14634 512551 481.3 1683 721.2
  11. 7 AUS 2005 598700 14634 468558 536.7 1877 804.5
  12. 8 AUS 2006 594111 14634 433974 564.8 1973 846.5
  13.  
  14. crime %>%
  15. mutate_at(vars(theft, robbery, burglary),
  16. funs(prod = . * ????))
Add Comment
Please, Sign In to add comment