IPDFileCheck (version 0.3.0)

getColumnNoForNames: Function to return the column number for column name

Description

Function to return the column number for column name

Usage

getColumnNoForNames(data, column.name)

Arguments

data

a data frame

column.name

column names of the data frame

Value

column number, if success -1, if failure

Examples

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

Run the code above in your browser using DataLab