check_column_exist: Function to check the given column exists

Description Usage Arguments Value Examples

View source: R/basic_checks.R

Description

Function to check the given column exists

Usage

1
check_column_exist(column_name, data)

Arguments

column_name

a column name

data

data frame

Value

0 if success -1 if failure

Examples

1
2
3
4
check_column_exist("age", data.frame(
  age = rep(20, 4), sex = rep("male", 4),
  stringsAsFactors = FALSE
))

valueEQ5D documentation built on Oct. 6, 2021, 5:10 p.m.