Learn R Programming

IPDFileCheck (version 0.8.1)

test_columnnames: 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

test_columnnames(column_names, data)

Value

0, if success error, if failure

Arguments

column_names

column names of the data frame

data

a data frame

Examples

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

Run the code above in your browser using DataLab