getNbObs {StormR} | R Documentation |
Getting the number of observations
Description
The getNbObs() function returns the number of observations
for a storm in a storm
or stormsList
object.
Usage
getNbObs(s, ...)
## S4 method for signature 'storm'
getNbObs(s)
## S4 method for signature 'stormsList'
getNbObs(s, name, season = NULL)
Arguments
s |
|
... |
extra arguments for |
name |
character. Name of the storm in capital letters. |
season |
numeric. Cyclonic season of the |
Value
numeric.
Examples
#Creating a stormsDataset
sds <- defStormsDataset()
#Getting storm track data for all storms near New Caledonia
sts <- defStormsList(sds=sds, loi = "New Caledonia")
##Getting the number of observations for the tropical cyclone Niran in the sts object
getNbObs(getStorm(sts, name = "NIRAN"))
getNbObs(sts, name = "NIRAN")
[Package StormR version 0.2.1 Index]