tidy_tracks: Creates "tidy" data (long format) for hurricane data.

Description Usage Arguments Value

View source: R/tidy_tracks.R

Description

This function is used to "tidy" the dataset read in by the read_ext_tracks function. Although the assignment this function is for requested to restate the data such that each quadrant had its own column I decided this is just an annoying intermediate step when the ultimate goal is to print the data which would require me to re-tidy the data.

Usage

1
2
tidy_tracks(ext_tracks, makeDate = TRUE, keepcols = c("storm_name", "date",
  "longitude", "latitude"))

Arguments

ext_tracks

This is data as read in via the read_ext_tracks function.

makeDate

This sets whether or not we wish to have the date columns combined into a single date column.

keepcols

This is a character vector of the columns from the original data that are desired to be reatined. The defaults represent the minimum items to satifsfy the assignment.

Value

A tidy data.frame, tibble per dplyr package


JJNewkirk/hurRicane documentation built on May 7, 2019, 10:12 a.m.