<About>
Features
Reflects the authors' 10+ years of applied R consulting throughout industry and academia
Builds skills one step at a time, in 24 one-hour lessons that take reader from the absolute basics to advanced techniques
Covers importing, manipulating, summarizing, modeling, and plotting data; formalizing analytical code; and building R packages using the latest best practices
Shows how to use today's most popular and up-to-date analysis packages for R
Teaches through practical instructions, realistic examples, hands-on workshops, Q-and-As, quizzes, exercises, tips, and more
<Description>
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
<Sample Content>
Table of Contents
Preface xii
HOUR 1: The R Community 1
A Concise History of R 1
The R Community 3
R Development 7
Summary 8
Q&A 8
Workshop 9
Activities 9
HOUR 2: The R Environment 11
Integrated Development Environments 11
R Syntax 14
R Objects 16
Using R Packages 23
Internal Help 28
Summary 29
Q&A 30
Workshop 30
Activities 32
HOUR 3: Single-Mode Data Structures 33
The R Data Types 33
Vectors, Matrices, and Arrays 34
Vectors 35
Matrices 49
Arrays 58
Relationship Between Single-Mode Data Objects 60
Summary 62
Q&A 62
Workshop 63
Activities 64
HOUR 4: Multi-Mode Data Structures 67
Multi-Mode Structures 67
Lists 68
Data Frames 86
Exploring Your Data 93
Summary 98
Q&A 98
Workshop 100