get_column_no_colnames: Function to return the column number for column name

View source: R/basic_checks.R

get_column_no_colnamesR Documentation

Function to return the column number for column name

Description

Function to return the column number for column name

Usage

get_column_no_colnames(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

get_column_no_colnames(data.frame(age = rep(20, 4), 
sex = rep("male", 4)), "sex")

sheejamk/valueEQ5D documentation built on Oct. 8, 2022, 7:46 a.m.