rename_laa_cols {halk}R 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


[Package halk version 0.0.5 Index]