View source: R/defStormsList.R
| subsetStorms | R Documentation |
stormsList objectThe subsetStorms() function keeps only specified storms from a stormsList
object based on their names and seasons, removing all others.
subsetStorms(sts, names, seasons)
sts |
|
names |
character vector. Names of storms to keep (in capital letters) |
seasons |
numeric vector. Seasons of storms to keep (same length as |
stormsList object containing only the specified storms
## Not run:
sds <- defStormsDataset(...)
sts <- defStormsList(sds, loi="Vanuatu", seasons=c(1990, 2000))
# Keep only specific storms
sts <- subsetStorms(sts, names=c("PAM", "NIRAN"), seasons=c(2015, 2021))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.