DataProcess: Format and summarize a clean data set for analysis

View source: R/DataProcess.R

DataProcessR Documentation

Format and summarize a clean data set for analysis

Description

DataProcess will combine observation, design transect, and stratification layers into a summary list for analysis

Usage

DataProcess(
  area,
  data.path = NA,
  strata.path = NA,
  transect.path = NA,
  threshold = 0.5,
  strata.id = "STRATNAME",
  trans.id = "OBJECTID",
  transect.layer,
  retain = "liberal"
)

Arguments

area

The area code for dedicated MBM Alaska region surveys. Acceptable values include:

  • YKD - Yukon Kuskokwim Delta, ducks

  • YKDV - Yukon Kuskokwim Delta, 2018 visibility study

  • YKG - Yukon Kuskokwim Delta, geese

  • KIG - Kigigak Island

  • ACP - Arctic Coastal Plain

  • CRD - Copper River Delta

  • WBPHS - The North American Waterfowl Breeding Population Habitat Survey

  • BLSC - 2018 Black Scoter Survey

data.path

The location of the QA/QC checked data file

strata.path

The location of the analysis stratification .gpkg file

transect.path

The location of the transect design .gpkg file

threshold

The distance in kilometers from a design file where observations are no longer counted. Defaults to 0.5 km.

strata.id

The identifier of the stratification naming

trans.id

The identifier of the correct transect numbering

transect.layer

The name of the design transect layer in the geopackage

Details

DataProcess reads in a clean data file (passed through GreenLight function) and pulls all observations with code==1. All observations coded as open 1 are then changed to single 1. The transect layer is then placed on the stratification and trimmed and renumbered from navigational numbers to analysis numbering. Species codes that need specific project treatments will be changed. Counts are adjusted for different indices at the row level. The resulting list object is the primary currency for design-based ratio estimator analysis.

Value

List object with 5 elements:

  1. obs The original data file with corrected transect and stratification information

  2. flight The flown transects for the observer with corrected numbering

  3. design The split design information

  4. strata The spatial polygon summary for the stratification layer

  5. transect Observations summarized at the transect level

Author(s)

Charles Frost, charles_frost@fws.gov

References

https://github.com/USFWS/AKaerial


USFWS/AKaerial documentation built on April 3, 2025, 4:06 p.m.