Function to test column names of a data being different from what specified
testDataColumnNames(column.names, data)
column names of the data frame
a data frame
0, if success -1, if failure
# 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