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/n2khelper documentation built on March 26, 2022, 1:51 p.m.