state_crosswalks {mwlaxeref} | R Documentation |
Crosswalk lake identifiers to/from specific states
Description
State specific functions to be used as handy shortcuts.
(i.e. you can call a state's function directly rather than specifying
local_to_*
or *_to_local
with the state as an argument.
One of these functions exists for all combinations of both states and lake
ID columns found in lake_id_xref
. For a full list of these functions,
see ?all_state_crosswalks
Usage
nhdhr_to_wi(data, from_colname = "nhdhr.id", agency = NULL)
lagos_to_mi(data, from_colname = "lagos.id", agency = NULL, id_field = NULL)
mn_to_mglp(data, from_colname, agency = NULL)
Arguments
data |
A data.set with a column containing a lake identifier corresponding to one of the datasets listed above (also see lake_id_xref) |
from_colname |
Character. The column name in |
agency |
Optional character vector specifying the agency to use for the local ID column. This is helpful if data exist in lake_id_xref for which there are more than one agency in a state that provided data |
id_field |
Optional character vector specifying the id.field to use for the local ID column. Occasionally states use more than one identifier. This allows explicit choice of which identifier to use. |
Value
A data.frame the same as data
, but with an additional
lake identification column from lake_id_xref
Examples
wi_to_nhdhr(wis_lakes, from_colname = "lake.id")