Learn R Programming

bbsBayes (version 2.5.3)

get_strata_area: Get the area of each strata

Description

get_strata_area allows you to obtain the area of each strata for a given stratification type.

Usage

get_strata_area(strata_type = NULL)

Value

Data frame with the following variables:

region

Name of the stratum/region

area_sq_km

Area of the stratum/region in square kilometres

Arguments

strata_type

Stratification type to return the areas of

Examples

Run this code

# Obtain the strata area for each of the 5 stratification types

# USGS BBS
st_area <- get_strata_area(strata_type = "bbs_usgs")

# CWS BBS
st_area <- get_strata_area(strata_type = "bbs_cws")

# BCR
st_area <- get_strata_area(strata_type = "bcr")

# State/Province/Territory
st_area <- get_strata_area(strata_type = "state")

# Degree block
st_area <- get_strata_area(strata_type = "latlong")

Run the code above in your browser using DataLab