get_id_ling: get id for a lingcod model from the directory

View source: R/get_id_ling.R

get_id_lingR Documentation

get id for a lingcod model from the directory

Description

Uses either a dir like "models/2021.s.002.001_new_fleets" and returns just the id part: "2021.s.002.001". dir can be a vector of directories as well.

Usage

get_id_ling(dir)

Arguments

dir

model directory within lingcod package structure

Author(s)

Ian G. Taylor

See Also

get_dir_ling()

Examples

  get_id_ling(dir = "models/2021.s.002.001_new_fleets")
  get_id_ling(dir = "2021.s.002.001_new_fleets")
  # acts as the inverse of get_dir_ling()
  get_id_ling(get_dir_ling(id = "2021.s.002.001"))

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