View source: R/defStormsList.R
| renameStorms | R Documentation |
stormsList objectThe renameStorms() function renames all storms from a stormsList
that have the same name. It is very common for "UNNAMED" storms for example.
These storms will be renamed "UNNAMED-YEAR-1", "UNNAMED-YEAR-2", ...
renameStorms(sts)
sts |
|
stormsList object with no duplicated names of storms
## Not run:
#Creating a stormsDataset
sds <- defStormsDataset(...)
sts <- defStormsList(...)
getNames(sts)
## "UNNAMED" "UNNAMED" "UNNAMED" "ALLEN" "CHARLEY" "DANIELLE" "JEANNE" "UNNAMED"
## "UNNAMED" "UNNAMED" "DENNIS" ...
sts <- renameStorms(sts)
getNames(sts)
## "UNNAMED-1980-1" "UNNAMED-1980-2" "UNNAMED-1980-3" "ALLEN-1980" "CHARLEY-1980" ...
## "UNNAMED-1980-6" "UNNAMED-1980-7" "DENNIS-1980" ...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.