lake_info: Get a summary of lake attribute information

View source: R/info.R

lake_infoR Documentation

Get a summary of lake attribute information

Description

Return lake attribute information from its name and state or its lagoslakeid.

Usage

lake_info(
  lagoslakeid = NA,
  name = NA,
  state = NA,
  lg = lagosus_load("locus"),
  max_distance = 0
)

Arguments

lagoslakeid

numeric lake id

name

character lake name not caps sensitive

state

character state name not caps sensitive

lg

list of data.frames. output of lagosus_load.

max_distance

passed to agrepl "all" parameter to control fuzzy matching lake name. Defaults to exact matching.

Examples

## Not run: 
lg <- lagosus_load("locus")

lake_info(lagoslakeid = 4314, lg = lg)
lake_info(lagoslakeid = c(21864, 2317))
lake_info(lagoslakeid = c(1441))
lake_info(lagoslakeid = c(125428, 1441), lg = lg)
lake_info(lagoslakeid = c(4686, 8016), lg = lg)

# fuzzy matching to lake name
lake_info(name = "Duck Lake", state = "Michigan", lg = lg)
# exact matching to lake name
lake_info(name = "Duck Lake", state = "Michigan",
          max.distance = list(all = 0), lg = lg)

lake_info(name = "Sunapee Lake", state = "New Hampshire", lg = lg)
lake_info(name = c("Sunapee Lake", "Oneida Lake"),
              state = c("New Hampshire", "New York"),
              max.distance = list(all = 0), lg = lg)

## End(Not run)

cont-limno/LAGOSUS documentation built on Aug. 24, 2023, 10:01 a.m.