dot-stopIfColExists: Warn if a column already exists in a data.frame

.stopIfColExistsR Documentation

Warn if a column already exists in a data.frame

Description

Warn if a column already exists in a data.frame

Usage

.stopIfColExists(df, new_col)

Arguments

df

A data.frame or tibble

new_col

character(n) Name of a column(s) to add to df

Value

Returns TRUE invisibly if "new_col" is not already in df. Otherwise, raises an error and prompts the user to supply a different value.


HelenLindsay/AbNames documentation built on June 6, 2023, 1:18 p.m.