cols_exist: Check whether columns exist in a data.frame

View source: R/cols_exist.R

cols_existR Documentation

Check whether columns exist in a data.frame

Description

Check whether columns exist in a data.frame

Usage

cols_exist(dataf, cols)

Arguments

dataf

a data.frame

cols

character vector of columns to be checked in dataf

Value

An error if all cols not present in dataf. Returns TRUE invisibly otherwise.


codaredistlm documentation built on Dec. 23, 2022, 1:29 a.m.