data_integrate: Integrate fish data

View source: R/data_integrate.R

data_integrateR Documentation

Integrate fish data

Description

Integrate datasets, add zeroes, divide into fish and survey tables, and export to csv and/or rda.

Usage

data_integrate(
  data_path,
  sources = c("Baystudy", "Suisun", "FMWT", "SKT", "DJFMP", "EDSM", "TMM", "SLS", "STN",
    "Salvage"),
  format = "rda",
  write = TRUE,
  quiet = FALSE
)

Arguments

data_path

Path to the folder where you wish the csv/rda files to be saved.

sources

Character vector of data sources to include

format

Should the fish and survey tables be saved as a csv alone, a combined .rda file, or both? Defaults to 'rda' and other options are 'csv' or 'both'.

write

Logical. Should the files be written to disk, or would you just like them returned as an R object? Defaults to TRUE.

quiet

Logical. Set to TRUE if you wish to hide all status messages.

Value

Invisibly returns a list with the survey and fish tables.

Examples

## Not run: 
data_integrate(data_path=file.path("data-raw", "EDI", "data_objects"))

## End(Not run)

sbashevkin/LTMRdata documentation built on Oct. 16, 2024, 7:09 p.m.