require_col: Assert that a required column exists in an input data frame

View source: R/pipeline-loadgeneric.R

require_colR Documentation

Assert that a required column exists in an input data frame

Description

Assert that a required column exists in an input data frame

Usage

require_col(df, col, df_name, role)

Arguments

df

The data frame to check.

col

The required column name.

df_name

The name of the data frame (for the error message).

role

A human-readable description of the column's role.

Value

No return value; throws an error if the column is missing.


eyeris documentation built on Aug. 1, 2026, 1:07 a.m.