handle_missing_cols: Add columns

View source: R/utilities.R

handle_missing_colsR Documentation

Add columns

Description

Add columns that are required for function processing in the case that required columns are missing from the input dataframe.

Usage

handle_missing_cols(df, cols)

Arguments

df

dataframe

cols

A vector containing the desired columns in the desired order, setup as c(colname = NA_real_, colname = NA_real_, ...)

Value

Dataframe with desired columns in the desired order


biogeochem/bpwtpR documentation built on May 6, 2024, 5:17 p.m.