read_ext_tracks: Read in ext_tracks data from Colorado State

Description Usage Arguments Value

View source: R/read_ext_tracks.R

Description

This function is set to read in extended tracks hurricane data from Colorad State NHC data compilation. This is simply a shell for readr::read_fwf() with defaults set for the current data convenctions. Currently data is in a fixed with format and this function is dependent on that form.

Usage

1
2
read_ext_tracks(file = "ebtrk_atlc_1988_2015.txt", ..., widths = NULL,
  colnames = NULL, degW = TRUE)

Arguments

file

this is the filename (including path if necessary) to the txt file containing the hurricane data.

...

This can be used to pass alternative arguments to readr::fwf() as seen in the following arguemnts.

widths

This is a numeric vector of column widths for the fixed width file. The default is set to the current convention.

colnames

This is a character vector of column names we wish to apply to the data being read in. The assumption is that there are no column names in the text file being read in. The default represents current convention.

degW

This stands for "degrees West" and is a logical representing if the text file data is coded such that the latitude is stated as "degrees West" and thus be strictly positive. If TRUE (the default) the read in procedure will transform the data by flipping the sign so that latitude is in universal coordinates (like a number line). There is no corresponding argument for the longitude as hurricanes are only being track for the northern hemisphere (always positive).

Value

data returned per specifications in readr::fwf. By default this is a data.frame


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