Subsets the ws_monitor$data dataframe by removing any monitors that lie outisde the geographical ranges specified (i.e. outside of the given longitudes and latitudes and/or states) and that are not mentioned in the list of monitorIDs.

If any parameter is not specified, that parameter will not be used in the subsetting.

Intended for use by the monitor_subset function.

monitor_subsetMeta(
  meta,
  xlim = NULL,
  ylim = NULL,
  stateCodes = NULL,
  countryCodes = NULL,
  monitorIDs = NULL
)

Arguments

meta

ws_monitor object meta dataframe

xlim

optional vector with low and high longitude limits

ylim

optional vector with low and high latitude limits

stateCodes

optional vector of stateCodes

countryCodes

optional vector of countryCodes

monitorIDs

optional vector of monitorIDs

Value

A ws_monitor object meta dataframe, or NULL if filtering removes all monitors.

Details

Longitudes must be specified in the domain [-180,180].