check_df_names: Function to check the names of a dataframe.

Description Usage Arguments Examples

View source: R/check-df-names.R

Description

This function is used in most plotting routines to check if the correct dataframe is passed.

Usage

1
check_df_names(data, expect, optional = NULL)

Arguments

data

Dataframe to check.

expect

Character vector giving the names of the expected columns

optional

Character vector giving the names of optional columns. Default is NULL.

Examples

1
2
3
4
## Not run: 
check_df_names(preprocess$biomass_age, expect = c("time", "species", "atoutput", "ages"))

## End(Not run)

alketh/atlantistools documentation built on Oct. 30, 2021, 5:46 a.m.