getArea: Get lake surface area

Description Usage Arguments Details Value Author(s) Examples

View source: R/lake_attribute_functions.R

Description

Returns the surface area for a lake with given ID

Usage

1
getArea(site_id)

Arguments

site_id

The character ID for the requested data (can be vector of ids)

Details

Looks for given site_ids and returns values if availalbe. All site_ids are coerced to character regardless of input type.

Value

Lake surface areas in meters^2. NA if no value available

Author(s)

Jordan Read, Luke Winslow

Examples

1
2
3
4
5
#Multiple values
getArea(c('10000', '6100'))

#this should return NA
getArea('asdf')

USGS-R/mda.lakes documentation built on Nov. 13, 2020, 8:28 p.m.