Learn R Programming

IPDFileCheck (version 0.8.1)

check_column_exists: Function to check the given column exists

Description

Function to check the given column exists

Usage

check_column_exists(column_name, data)

Value

0 if success error if failure

Arguments

column_name

a column name

data

data frame

Examples

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

Run the code above in your browser using DataLab