monitor_subsetMeta: Subset ws_monitor Object 'meta' Dataframe

Description Usage Arguments Details Value

View source: R/monitor_subsetMeta.R

Description

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.

Usage

1
2
3
4
5
6
7
8
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

Details

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

Value

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


PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.