Hands-On Programming with R
This book is mainly targeted towards R-newbies who have managed to learn some basic R syntax and are looking for some guidance on writing functions in R. The key idea that one needs to understand before writing functions is the way R organizes objects in various environments. The author explains this idea using the analogy of “file system in a computer”. The book uses two examples, 1) shuffling a deck and dealing cards from it 2) simulating the outcomes of a slot machine.