Skip to content

Instantly share code, notes, and snippets.

Avatar

Kate Hertweck k8hertweck

View GitHub Profile
@k8hertweck
k8hertweck / IntroTidyverse.R
Last active Oct 18, 2019
Seattle UseR: Intro to tidyverse, October 2019
View IntroTidyverse.R
library(tidyverse)
big_epa_cars <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-10-15/big_epa_cars.csv")
head(big_epa_cars)
str(big_epa_cars)
colnames(big_epa_cars)
# selecting columns with dplyr
sel_columns <- select(big_epa_cars, fuelType, city08, co2)
# select range of columns