Learn R Programming

eyeris (version 3.0.1)

check_column: Check if column exists in data frame

Description

Validates that a specified column exists in a data frame.

Usage

check_column(df, col_name)

Value

No return value; throws error if column doesn't exist

Arguments

df

The data frame to check

col_name

The column name to look for