/data-skills-02

Data Skills 02 - Data Wrangling with dplyr Overview

Primary LanguageHTMLCreative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

data-skills-02

Session Overview

Objectives

At the end of this lesson, participants should be able to:

  1. Describe what an .Rproj (R project) is in basic terms
  2. Rename variables both en-masse or one-by-one
  3. Subset observations and columns to create custom cuts of data
  4. Create new variables based on existing data

Lesson Resources

  • The SETUP.md file contains a list of packages required for this lesson
  • The notebook/ directory contains both the seminar and completed versions of our lesson notebooks

Extra Resources

Access Lesson

Initial Package Installation

We use the install.packages function to install modular components of the R ecosystem. For instance, to access lesson materials, we'll use the usethis package. To install it, we run the following function in our console:

install.packages("usethis")

Download Lesson Materials

With the package installed, you you can download this lesson to your Desktop easily using usethis:

usethis::use_course("https://github.com/chris-prener/data-skills-02/archive/master.zip")

By using usethis::use_course, all of the lesson materials will be downloaded to your computer, automatically extracted, and saved to your desktop. The data-skills-02-master project should open automatically afterwards. Windows users will have the data downloaded to their user folder (e.g. C:/Users/<USERNAME>/).

Install Other Packages for Today

In addition to usethis, there are a couple of other packages we'll need:

install.packages(c("tidyverse", "here", "janitor", "palmerpenguins", "knitr", "rmarkdown"))

If you've already installed packages from prior data skills sessions, you should only need:

install.packages(c("tidyverse", "here", "janitor"))

Now we're ready to go!

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.