R in 24 hours, Sams Teach Yourself

by ; ;
  • ISBN13:


  • ISBN10:


  • Edition: 1st
  • Format: Paperback
  • Copyright: 2015-12-22
  • Publisher: Sams Publishing
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99 Save up to $6.00
  • Buy New


Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
  • The eBook copy of this book is not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.


In just 24 lessons of one hour or less, Sams Teach Yourself R in 24 Hours helps you learn all the R skills you need to solve a wide spectrum of real-world data analysis problems. You’ll master the entire data analysis workflow, learning to build code that’s efficient, reproducible, and suitable for sharing with others.

This book’s straightforward, step-by-step approach teaches you how to import, manipulate, summarize, model, and plot data with R; formalize your analytical code; and build powerful R packages using current best practices.


Practical, hands-on examples show you how to apply what you learn.
Quizzes and exercises help you test your knowledge and stretch your skills.


Learn How To

  • Install, configure, and explore the R environment, including RStudio
  • Use basic R syntax, objects, and packages
  • Create and manage data structures, including vectors, matrices, and arrays
  • Understand lists and data frames
  • Work with dates, times, and factors
  • Use common R functions, and learn to write your own
  • Import and export data and connect to databases and spreadsheets
  • Use the popular tidyr, dplyr and data.table packages
  • Write more efficient R code with profiling, vectorization, and initialization
  • Plot data and extend your graphical capabilities with ggplot2 and Lattice graphics
  • Develop common types of models
  • Construct high-quality packages, both simple and complex
  • Write R classes: S3, S4, and Reference Classes
  • Use R to generate dynamic reports
  • Build web applications with Shiny

Register your book at informit.com/register for convenient access to updates and corrections as they become available.


This book’s source code can be found at http://www.mango-solutions.com/wp/teach-yourself-r-in-24-hours-book/.

Author Biography

Andy Nicholls has a Master of Mathematics degree from the University of Bath and Master of Science in Statistics with Applications in Medicine from the University of Southampton. Andy worked as a Senior Statistician in the pharmaceutical industry for a number of years before joining Mango Solutions as an R consultant in 2011. Since joining Mango, Andy has taught more than 50 on-site R training courses and has been involved in the development of more than 30 R packages. Today, he manages Mango Solution’s R consultancy team and continues to be a regular contributor to the quarterly LondonR events, by far the largest R user group in the UK, with over 1,000 meet-up members. Andy lives near the historical city of Bath, UK with his wonderful, tolerant wife and son.


Richard Pugh has a first-class Mathematics degree from the University of Bath. Richard worked as a statistician in the pharmaceutical industry before joining Insightful, the developers of S-PLUS, joining the pre-sales consulting team. Richard’s role at Insightful included a variety of activities, providing a range of training and consulting services to blue-chip customers across many sectors. In 2002, Richard co-founded Mango Solutions, developing the company and leading technical efforts around R and other analytic software. Richard is now Mango’s Chief Data Scientist and speaks regularly at data science and R events. Richard lives in Bradford on Avon, UK with his wife and two kids, and spends most of his “spare” (ha!) time renovating his house.


Aimee Gott has a PhD in Statistics from Lancaster University where she also completed her undergraduate and master’s degrees. As Training Lead, Aimee has delivered over 200 days of training for Mango. She has delivered on-site training courses in Europe and the U.S. in all aspects of R, as well as shorter workshops and online webinars. Aimee oversees Mango’s training course development across the data science pipeline, and regularly attends R user groups and meet-ups. In her spare time, Aimee enjoys learning European languages and documenting her travels through photography.

Table of Contents

Hour 1: The R Community
Hour 2: The R Environment
Hour 3: Single Mode Data Structures
Hour 4: Multi-Mode Data Structures
Hour 5: Dates, Times and Factors
Hour 6: Common R Utility Functions
Hour 7: Writing Functions
Hour 8: Writing Functions
Hour 9: Loops and Summaries
Hour 10: Importing and Exporting
Hour 11: Data Manipulation and Transformation
Hour 12: Efficient Data Handling in R
Hour 13: Graphics
Hour 14: The ggplot2 Package for Graphics
Hour 15: Lattice Graphics
Hour 16: Introduction to R models and Object Orientation
Hour 17: Common R models
Hour 18: Code Efficiency
Hour 19: Package Building
Hour 20: Advanced Package Building
Hour 21: Writing R Classes
Hour 22: Beyond S3
Hour 23: Automated Reporting
Hour 24: Building Web Applications with Shiny

Rewards Program

Write a Review