read_exchange_data: Read stomach contents data on exchange format

View source: R/read_exchange_data.R

read_exchange_dataR Documentation

Read stomach contents data on exchange format

Description

Read data from exchange data

Usage

read_exchange_data(
  control,
  delete_errors = FALSE,
  allow_alias_names = FALSE,
  keep_just_mandatory_fields = FALSE,
  fileEncoding = ""
)

Arguments

control

Options STOMcontrol-class) for dplyr::selecting and collating stomach data.

delete_errors

Logical for deleting records with errors. if FALSE, the function will stop at the first error found, if TRUE records with errors will be deleted, but the function continues if possible.

allow_alias_names

Logical for using alias field names as specified in the stomach_format

keep_just_mandatory_fields

Logical for just keeping mandatory field names as specified in the stomach_format

fileEncoding

character string: if non-empty declares the encoding used on a file so the character data can be re-encoded.

Value

Stomach data of class STOMobs.

Examples

## Not run: read_exchange_data(control, fileEncoding = "latin1")

MortenVinther/FishStomachs documentation built on Feb. 14, 2025, 7:33 a.m.