check_column_exists {IPDFileCheck}R Documentation

Function to check the given column exists

Description

Function to check the given column exists

Usage

check_column_exists(column_name, data)

Arguments

column_name

a column name

data

data frame

Value

0 if success error if failure

Examples

check_column_exists("age", data.frame("Age" = c(21, 15),
"Name" = c("John", "Dora")))

[Package IPDFileCheck version 0.8.1 Index]