Skip to contents

Read AirDAS SpCodes file

Usage

airdas_spcodes_read(file, skip = 3)

Arguments

file

character; filename of .dat file from which to read accepted species codes

skip

integer; default is 3. Number of lines to skip when reading SpCodes file. See readr::read_fwf() for more details

Value

Data frame with three columns:

  • code: species code, columns 1 to 6

  • common_name: species common name, columns 10 to 42

  • sci_name: species scientific name, columns 43 until the end of the line

Details

Provide a standardized function to read an aerial survey DAS SpCodes file. Methods described in 'returns'

Examples

sp.codes.file <- system.file(
  "extdata", "SpCodesAirDAS.dat", package = "swfscAirDAS"
)
if (interactive()) airdas_spcodes_read(sp.codes.file)