data-raw/06-nycweather.R

library(tidyverse)

#
# The `nycweather` dataset
#

nycweather <-
  readr::read_csv("./data-raw/06-nycweather.csv", col_types = "cciiiiiddddddddddc") %>%
  dplyr::select(time, wd, ws, temp, p = atmos_pres, rh) %>%
  dplyr::mutate(time = time %>% stringr::str_replace("T", " ")) %>%
  dplyr::mutate(time = time %>% stringr::str_replace("Z", ""))
rich-iannone/rwr documentation built on Jan. 22, 2021, 7:51 p.m.