SS_readdat.list: Read in a multiple SS dat files from directories into a list

View source: R/SS_readdat.list.R

SS_readdat.listR Documentation

Read in a multiple SS dat files from directories into a list

Description

Read in however many SS dat files you want into a list based on using a vector of patterns to search for various directories. First the relevant directories are found, then the ss_new data files are found, then each one is read into a list.

Usage

SS_readdat.list(dir, pattern)

Arguments

dir

Path to upper directory that stores all your model directories. Inside dir, the function will search for each of the model folders specified in pattern.

pattern

A vector of character objects, where each entry is a pattern that you want to search for in dir. It is best if each entry returns only a single directory when searching, this will allow the names of the output list to be 1:1 with respect to the input, which is the search string that led to the path to the model directory.

Value

An invisible list, where each element of the list is the output from r4ss::SS_readdat. List elements will be named using the input to pattern.

Author(s)

Kelli Faye Johnson


iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.