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)

Chapter 1: Introduction to R

The following are the activity solutions for this chapter.

Activity: Installing the Tidyverse Packages

  1. Open the project we created in the subtopic Using R and RStudio called IntroToDSwRCourse. You will see the following screen:
  1. Create another new R script, using either File | New File | R Script, or by clicking the top - left button that looks like a piece of white paper with a green arrow over it, and selecting R Script.
  2. In the new script, type install.packages("tidyverse") and click Run, or use Ctrl + Enter. You should now see something along the lines of the following screenshot in the console. Also, if you scroll through the packages in the lower right corner, Tidyverse will now...