getstnname {seas} | R Documentation |
Retrieves the full name from mscstn
using an ID
getstnname(id)
id |
This function simply converts the ID used in climate data frames into
a meaningful name using mscstn
. Presently it is useful only for
Meteorological Service of Canada weather stations in BC, AB and YT,
however getstnname
can be overridden by another (similar)
function and data object for other regions.
Returns the station name(s). If the ID does not exist, returns NULL
.
Mike Toews
data(mscdata) mscdata$id[1] getstnname(mscdata$id[1]) ids <- levels(mscdata$id) data.frame(id=I(ids), name=getstnname(ids))