check_dataframe_covariate: Check if the covariates are available in a dataframe

View source: R/check_dataframe_covariate.R

check_dataframe_covariateR Documentation

Check if the covariates are available in a dataframe

Description

Check if the covariates are available in a dataframe

Usage

check_dataframe_covariate(df, covariate, response = "Count", error = TRUE)

Arguments

df

the data.frame to check

covariate

The right hand side of the model as a character

response

The left hand side of the model as a character

error

When TRUE (default), the function returns an error when a variable is missing. Otherwise it returns a warning.


INBO-Natura2000/n2khelper documentation built on April 5, 2022, 5:40 p.m.