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 Jan. 14, 2025, 9:12 p.m.