Data wrangling R

The gapminder dataset

#loading packages
library(gapminder)
library(dplyr)

Gapminder display contents of the gapminder object, structured as a data frame

Data frame keeps rectangular data in rows and columns, similar to a spreadsheet, or a table in a SQL database.

The filter verb

Introduction to the tidyverse

pine: percent greater than, percent

gapminder $>$
	filter(year == 2007)

filter observation: logical equals

The arrange verb

The filter verb: extracting a subset of your observations based on a condition.