Learn R Programming

StormR (version 0.2.1)

getSeasons: Getting cyclonic seasons of the storms

Description

The getSeasons() function returns the cyclonic season of each storm in a storm or stormsList object.

Usage

getSeasons(s)

# S4 method for storm getSeasons(s)

# S4 method for stormsList getSeasons(s)

Value

numeric vector.

Arguments

s

storm or stormsList object.

Examples

Run this code
# \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 cyclonic seasons of the storms from the sts object
getSeasons(sts)
# }

Run the code above in your browser using DataLab