IPDFileCheck (version 0.5.0)

testDataColumnNames: Function to test column names of a data being different from what specified

Description

Function to test column names of a data being different from what specified

Usage

testDataColumnNames(column.names, data)

Arguments

column.names

column names of the data frame

data

a data frame

Value

0, if success -1, if failure

Examples

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

Run the code above in your browser using DataLab