Learn R Programming

atlantistools (version 0.4.3)

check_df_names: Function to check the names of a dataframe.

Description

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

Usage

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

Run this code
# NOT RUN {
check_df_names(preprocess$biomass_age, expect = c("time", "species", "atoutput", "ages"))
# }

Run the code above in your browser using DataLab