Learn R Programming

cards (version 0.3.0)

.check_no_ard_columns: Check Protected Column Names

Description

Checks that column names in a passed data frame are not protected, that is, they do not begin with "...ard_" and end with "...".

Usage

.check_no_ard_columns(x, exceptions = "...ard_dummy_for_counting...")

Value

returns invisible if check is successful, throws an error message if not.

Arguments

x

(data.frame)
a data frame

exceptions

(string)
character string of column names to exclude from checks

Examples

Run this code
data <- data.frame("ard_x" = 1)

cards:::.check_no_ard_columns(data)

Run the code above in your browser using DataLab