Skip to contents

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

Usage

lake_info(lagoslakeid = NA, name = NA, state = NA, dt = lagosne_load(), ...)

Arguments

lagoslakeid

numeric lake id

name

character lake name not caps sensitive

state

character state name not caps sensitive

dt

list of data.frames. output of lagosne_load.

...

arguments passed to agrepl to fuzzy match lake name

Examples

if (FALSE) {
lake_info(lagoslakeid = 4314)
lake_info(lagoslakeid = 7441)
lake_info(lagoslakeid = 244)
lake_info(lagoslakeid = 4686)
lake_info(lagoslakeid = 8016)
lake_info(lagoslakeid = c(21864, 2317))
lake_info(lagoslakeid = c(1441))
lake_info(lagoslakeid = c(125428, 1441))
lake_info(lagoslakeid = c(4686, 8016))

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

lake_info(name = "Sunapee Lake", state = "New Hampshire")
lake_info(name = c("Sunapee Lake", "Oneida Lake"),
              state = c("New Hampshire", "New York"))
}