Hands-on programming with R : write your own functions and simulations - Grolemund, Garrett (O'Reilly Media, 2014)