das_spcodes: Read DAS SpCodes file

das_spcodesR Documentation

Read DAS SpCodes file

Description

Read DAS SpCodes file

Usage

das_spcodes_read(file, skip = 0)

Arguments

file

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

skip

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

Details

Provide a standardized function to read a shipboard DAS SpCodes file. Methods described in 'returns'

Value

Data frame with four columns:

  • SpCode: species code, columns 1 to 4

  • Abbr: species abbreviation, columns 6 to 15

  • SciName: species scientific name, columns 18 to 57

  • CommonName: species common name, columns 58 until the end of the line

Examples

sp.codes.file <- system.file("extdata", "SpCodes_sample.dat", package = "swfscDAS")
das_spcodes_read(sp.codes.file)


swfscDAS documentation built on Nov. 3, 2026, 9:06 a.m.