lake_info: Get a summary of lake attribute information

Description Usage Arguments Examples

View source: R/info.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
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"))

## End(Not run)

LAGOSNE documentation built on Nov. 29, 2020, 1:07 a.m.