View source: R/getSurveyData.R
getSurveyData | R Documentation |
Function to read survey data (abundance, biomass by sex and category) from a csv file and return it as a dataframe.
getSurveyData(fn = NULL)
fn |
|
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".
dataframe with same columns as input file. Input units are converted to t (biomass) and ones (abundance).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.