importRDBESDataZIP: Import RDBES Downloaded Data

View source: R/importRDBESDataZIP.R

importRDBESDataZIPR Documentation

Import RDBES Downloaded Data

Description

An internal function used by createRDBESDataObject. Reads the .zip files downloadable from the ICES RDBES web page. The function accepts a filepaths to zip files, unzips and import tables as an object of class RDBESDataObject.

Usage

importRDBESDataZIP(filenames, castToCorrectDataTypes = TRUE, Hierarchy = NULL)

Arguments

filenames
  • path to zipfile. Multiple paths can be entered if, for instance, you want to add CL and CE tables to the same object.

castToCorrectDataTypes

Logical. If TRUE then the function will attempt to cast the required columns to the correct data type. If FALSE then the column data types will be determined by how the csv files are read in. Default is TRUE. @param Hierarchy - Optional. A number specifying the hierarchy of the data to be imported. If the .zip file contains multiple hierarchies.

Value

a list of all the RDBES data tables The table that are not in input data are NULL

Examples

## Not run: 
rdbesExtractPath <- "./2022_FPN_FPE_H7.zip"
obj <- importRDBESDataZIP(rdbesExtractPath)

## End(Not run)

ices-tools-dev/icesRDBES documentation built on April 17, 2025, 1:58 p.m.