IPDFileCheck (version 0.5.0)

checkColumnExists: Function to check the given column exists

Description

Function to check the given column exists

Usage

checkColumnExists(column.name, data)

Arguments

column.name

a column name

data

data frame

Value

0 if success -1 if failure

Examples

Run this code
# NOT RUN {
checkColumnExists("age",data.frame("Age" = c(21,15), "Name" = c("John","Dora")))
# }

Run the code above in your browser using DataLab