hasColumn: Check whether a column is found in a data set

View source: R/hasColumn.R

hasColumnR Documentation

Check whether a column is found in a data set

Description

Checks whether a specified column is found in a specified data set

Usage

hasColumn(columnName, data)

Arguments

columnName

The column to look for.

data

the data.frame to search.

Value

logical scalar. TRUE if the column is found. FALSE otherwise

Examples

safetyGraphics:::hasColumn(columnName="PARAM",data=safetyData::adam_adlbc) #TRUE
safetyGraphics:::hasColumn(columnName="Not_a_column",data=safetyData::adam_adlbc) #FALSE


safetyGraphics documentation built on Dec. 28, 2022, 1:58 a.m.