
The getNbObs() function returns the number of observations
for a storm in a storm
or stormsList
object.
getNbObs(s, ...)# S4 method for storm
getNbObs(s)
# S4 method for stormsList
getNbObs(s, name, season = NULL)
numeric.
storm
or stormsList
object.
extra arguments for stormsList
character. Name of the storm in capital letters.
numeric. Cyclonic season of the storm
. Required only
if several storm
in the s
have the same name. Default value is set to
NULL
.
# \donttest{
#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")
# }
Run the code above in your browser using DataLab