- Paperback: 230 pages
- Publisher: O'Reilly Media (August 2, 2014)
- Language: English
- ISBN-10: 1449359019
- ISBN-13: 978-1449359010
- Product Dimensions: 7 x 0.6 x 9.2 inches
- Shipping Weight: 14.9 ounces (View shipping rates and policies)
- Average Customer Review: 16 customer reviews
- Amazon Best Sellers Rank: #65,733 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Hands-On Programming with R: Write Your Own Functions and Simulations
Use the Amazon App to scan ISBNs and compare prices.
"Children of Blood and Bone"
Tomi Adeyemi conjures a stunning world of dark magic and danger in her West African-inspired fantasy debut. Learn more
Frequently bought together
Customers who bought this item also bought
Customers who viewed this item also viewed
About the Author
Garrett Grolemund is a statistician, teacher and R developer who currently works for RStudio. He sees data analysis as a largely untapped fountain of value for both industry and science. Garrett received his Ph.D at Rice University in Hadley Wickham's lab, where his research traced the origins of data analysis as a cognitive process and identified how attentional and epistemological concerns guide every data analysis.
Garrett is passionate about helping people avoid the frustration and unnecessary learning he went through while mastering data analysis. Even before he finished his dissertation, he started teaching corporate training in R and data analysis for Revolutions Analytics. He's taught at Google, eBay, Axciom and many other companies, and is currently developing a training curriculum for RStudio that will make useful know-how even more accessible.
Outside of teaching, Garrett spends time doing clinical trials research, legal research, and financial analysis. He also develops R software, he's co-authored the lubridate R package--which provides methods to parse, manipulate, and do arithmetic with date-times--and wrote the ggsubplot package, which extends the ggplot2 package.
Author interviews, book reviews, editors picks, and more. Read it now
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
Compared to other programming languages that I know, I have found it harder to get to that place of knowing a useful subset of R. This is partly because I've never made it a high priority, but also because there seemed to be something unintuitive about the language (especially compared to Python, the language that I use most). I would occasionally pick up a book on R but rapidly lose interest in a day or two, and then rapidly forgetting much of what I had learned.
But then recently I started reading the book "Doing Bayesian Data Analysis" by John Kruschke, which makes heavy use of R. This motivated me to try once again to learn some R. In one chapter, Kruschke introduces Markov Chain Monte Carlo. He discusses the Metropolis algorithm through a toy example involving matching the distribution of a finite discrete distribution. When I read that chapter I quickly wrote a Python script which reproduced the simulation. But it occurred to me that to fully enter into the spirit of Kruschke's book, I should write the simulation in R. I put Kruschke's book to the side, ordered this book from Amazon, and then plowed through it in a week. Today (just 10 days after getting the book) I was able to write a working MCMC model in R.
Pros and cons of the book itself:
Pros: It has a nice discussion of vectors, matrices, lists, and data frames. In some of my previous brief forays into R, I never got to the point of having a really clear mental model as to just how those data structures related to each other. I found his discussions of attributes particularly helpful. His choice of a deck of cards as a data frame struck me as contrived at first but it was effective in giving a basic orientation in how data frames work. The third part, where the author got into programming proper, was the most interesting part, and I found the slot machine example interesting.
Cons: It is pricey for its size (200 pages + appendices), especially given the lack of proper proof-reading. This was close to a deal breaker for me, but I had resolved to learn enough R to write a MCMC simulation and wanted to do so before I returned to the other book. The chapter on environments seemed a bit of a stretch. Using closures to maintain the state of a deck strikes me as baroque, though maybe that is just the Python programmer in me. Furthermore, I suspect that people who are coming to programming for the first time would find that chapter mystifying.
On the whole I was happy with the book. I find myself vacillating between giving it 4 stars or 5 stars. I'm in a good mood today, so I'll give it 5.
R as a programing language has also evolved so much over the past 5 years that I find that the newer books are a better start for beginners, not that the classics should be skipped. This book has a cleaner narrower focus and is a great fit for someone new to R. It uses less libraries and the libraries it uses are clean and make working with R easier. Also I couldn't imagine working with R without using RStudio and this book also shows short cuts on the language's best IDE that is free for personal use.
My suggestion is that someone with little to no experience programing should maybe get two books to learn R. 1) R for Everyone by Jared P. Lander (Though the font for the code in Kindle is frustrating because it doesn't show symbols correctly unless you copy and paste the code!) 2) Hands-On Programming with R by Garrett Gromlemund. Than after under standing these books and maybe doing a few free online courses get 1) The Art of R Programming by Norman Matloff and 2) R in Action by Robert Kabacoff (Only available for sale at the publishers website for the EBook)
What I want is a second book on using Hadley Wickham's libraries as a second book. Using Reshape2, ddplyr, tidyr, stringr, tidyr, ggplot2, ggvis and shiny.
Most recent customer reviews
Really learned a lot from this one. Highly recommended!