get_post_cols: Extract time series columns for a given parameter and change...

View source: R/utils-get-post-cols.R

get_post_colsR Documentation

Extract time series columns for a given parameter and change the column names to years. Optionally, divide all values in the resulting data frame by some value

Description

Extract time series columns for a given parameter and change the column names to years. Optionally, divide all values in the resulting data frame by some value

Usage

get_post_cols(df, pat, scale = 1, exact = FALSE)

Arguments

df

A data frame

pat

A regular expression to be used to extract columns from df. If the column names start with this, they will be extracted and renamed

scale

A value to divide all resulting values in the table by

Value

A simple data frame with years as columns and values as elements


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.