get_tpl_nm: Get the names of all objects named in the BAM tpl file, with...

View source: R/get_tpl_nm.r

get_tpl_nmR Documentation

Get the names of all objects named in the BAM tpl file, with object classes in tpl_object_classes.

Description

Get the names of all objects named in the BAM tpl file, with object classes in tpl_object_classes.

Usage

get_tpl_nm(
  tpl_obj = NULL,
  tpl_file = NULL,
  tpl_object_classes = c("init_int", "number", "init_number", "init_bounded_number",
    "const double", "vector", "init_vector", "init_bounded_vector", "init_ivector",
    "init_bounded_dev_vector", "matrix", "init_matrix")
)

Arguments

tpl_obj

tpl file read in as a character vector with readLines(con=tpl_file)

tpl_file

tpl file path

tpl_obj_classes

Character vector of names of tpl object classes. I think I listed all of the classes used in BAM, but I might have missed something.

Examples

get_tpl_nm(tpl_AtlanticMenhaden)
get_tpl_nm(tpl_BlackSeaBass)


nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.