data_filter_hurricane: Filter out data by hurricane

Description Usage Arguments Value Note Examples

View source: R/hurricane_data.R

Description

This function takes the clean data produced by the data_tidy function and produces a new filtered dataset

Usage

1
data_filter_hurricane(data, name = "alberto", year = 2012)

Arguments

data

A tibble with tidy hurricane data

name

A character string of the name of the hurricane

year

And integer or character string with year of the storm – as the same named storm can happen in multiple years

Value

Filtered hurricane data

Note

The year of the storm is also needed because storm names are recycled

Examples

1
2
3
4
5
6
## Not run: 
    data_filter_hurricane(data, name = "alberto", year = 1988)
    data_filter_hurricane(data, name = "alberto", year = "2006")
    data_filter_hurricane(data, name = "alberto", year = 2012)

## End(Not run)

akram-syed/geomhurricane documentation built on May 3, 2020, 1:36 p.m.