check_rename_variable_col: Check that a Column Name is in a Dataset and Replace it by a...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Internal and unexported function of ForestData

Usage

1

Arguments

arg

A character argument corresponding to a column name, that must be checked

name

A name which replaces the original column name inside the function where the check/replace is called

data

A data.frame

Value

A data.frame in which the target colname has been replaced by one that will be used internally

Examples

1
2
3
4
## Not run: 
data <- check_rename_variable_col(status_col, "status",data)

## End(Not run)

EcoFoG/SWBM documentation built on Feb. 22, 2022, 1:12 a.m.