get_col_name_from_key_title: Get the name of a column in the input data frame that matches...

View source: R/utils-get-col-name-from-key-title.R

get_col_name_from_key_titleR Documentation

Get the name of a column in the input data frame that matches a regular expression in the key_posteriors list, given a title as found in key_posteriors_titles

Description

Get the name of a column in the input data frame that matches a regular expression in the key_posteriors list, given a title as found in key_posteriors_titles

Usage

get_col_name_from_key_title(df = NULL, pat = NULL)

Arguments

df

The data frame with column names

pat

The regular expression used to match a title in key_posteriors_titles

Value

A string, which is the name of a column in the data frame df


pacific-hake/hake-assessment documentation built on Feb. 17, 2025, 1:58 p.m.