rename_laa_cols: Simple helper function to rename size and age column names to...

View source: R/utils.R

rename_laa_colsR Documentation

Simple helper function to rename size and age column names to age and length

Description

Simple helper function to rename size and age column names to age and length

Usage

rename_laa_cols(
  data,
  size_col = "length",
  age_col = "age",
  num_col = NULL,
  goback = FALSE
)

Arguments

data

Any data.frame with some columns representing age and size

size_col

Character. The name of the column containing sizes

age_col

Character. The name of the column containing ages

num_col

Character. The name of the column containing number of individuals

goback

Logical. Reverse names once they've already been renamed

Value

A data.frame the same as data, but with names changed


halk documentation built on May 29, 2024, 5:22 a.m.