Book Image

R Programming Fundamentals

By : Kaelen Medeiros
Book Image

R Programming Fundamentals

By: Kaelen Medeiros

Overview of this book

R Programming Fundamentals, focused on R and the R ecosystem, introduces you to the tools for working with data. You’ll start by understanding how to set up R and RStudio, followed by exploring R packages, functions, data structures, control flow, and loops. Once you have grasped the basics, you’ll move on to studying data visualization and graphics. You’ll learn how to build statistical and advanced plots using the powerful ggplot2 library. In addition to this, you’ll discover data management concepts such as factoring, pivoting, aggregating, merging, and dealing with missing values. By the end of this book, you’ll have completed an entire data science project of your own for your portfolio or blog.
Table of Contents (6 chapters)

Summarizing Data

A huge component of data management and cleaning is summarizing your data. It's hard to know what's really inside data just by looking at it. If you're a frequent user of Microsoft Excel, you might be familiar with creating pivot tables to summarize data and get a feel for what's inside your dataset. We won't use pivot tables with R in this book, but it is possible.

There are various R functions and R packages that allow for the creation of different types of tables to examine data. You can also use the apply family of functions to generate summaries.

Data Summarization Tables

If you're familiar with Microsoft Excel, you may have some experience building pivot tables. It&apos...