get_area: Generate a table of stratum areas

View source: R/get_area.R

get_areaR Documentation

Generate a table of stratum areas

Description

Calculates the area of a polygon from a shapefile.

Usage

get_area(areaPolygon, areaDescription)

Arguments

areaPolygon

sf object. Name of the object containing the shapefile.

areaDescription

Character String. Column name from areaPolygon that contains the strata designations.

Value

Returns a data.table (nx2).

STRATA

The name of each Region

AREA

The area of the STRATA in square kilometers

Coordinate reference system (CRS)

The deafult CRS is the Lambert Conformal Conic as is denoted by :

"+proj=lcc +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-72 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0 "

See Also

Other survdat: calc_stratified_mean(), calc_swept_area(), get_length_weight(), get_survdat_clam_data(), get_survdat_data(), get_survdat_scallop_data(), post_strat(), strat_mean(), swept_area()

Examples

## Not run: 
#Find the area of each Stratum in the strata.shp shapefile (bundled with the package)
area <- sf::st_read(dsn=system.file("extdata","strata.shp",package="survdat"))
get_area(areaPolygon = area, areaDescription="STRATA")

## End(Not run)


andybeet/survdat documentation built on Nov. 9, 2023, 10:11 a.m.