getInObs {StormR} | R Documentation |
Getting the number of the observations
Description
The getInObs()
function returns the number of the
observations in a given storm
or stormsList
object.
Usage
getInObs(s, ...)
## S4 method for signature 'stormsList'
getInObs(s, name, season = NULL)
## S4 method for signature 'storm'
getInObs(s)
Arguments
s |
|
... |
extra argument for |
name |
character. Name of the storm in capital letters. |
season |
numeric. Cyclonic season of the |
Value
Numeric vector.
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 the observation for the tropical cyclone Niran in the sts object
getInObs(getStorm(sts, name = "NIRAN"))
getInObs(sts, name = "NIRAN")
[Package StormR version 0.2.1 Index]