getSurveyData: Read survey data (abundance, biomass) from a csv file and...

View source: R/getSurveyData.R

getSurveyDataR Documentation

Read survey data (abundance, biomass) from a csv file and return it as a dataframe

Description

Function to read survey data (abundance, biomass by sex and category) from a csv file and return it as a dataframe.

Usage

getSurveyData(fn = NULL)

Arguments

fn
  • survey data filename

Details

Uses wtsUtilities::selectFile(). The input datafile must be a csv file with columns

  • year

  • type (abundance/biomass)

  • sex

  • category

  • units

  • value

  • cv

Allowable units for abundance are 'ones', 'thousands', 'millions'. Allowable units for biomass are 'kg', 't', and "1000's t".

Value

dataframe with same columns as input file. Input units are converted to t (biomass) and ones (abundance).


wStockhausen/rPIBKC documentation built on April 25, 2023, 6:50 p.m.