get_colno_existing_colnames: Function to return the column number for a given column name...

View source: R/basic_checks.R

get_colno_existing_colnamesR Documentation

Function to return the column number for a given column name (from list of possible column names that may have used) in a data frame

Description

Function to return the column number for a given column name (from list of possible column names that may have used) in a data frame

Usage

get_colno_existing_colnames(column_names, data)

Arguments

column_names

column names in a data frame

data

a data frame

Value

the column number

Examples

get_colno_existing_colnames(c("age"), data.frame(age = rep(20, 4), 
gender = rep("male", 4)))

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