hasField: Check whether a specified field value is found in a data set

View source: R/hasField.R

hasFieldR Documentation

Check whether a specified field value is found in a data set

Description

This checks whether a specific value is found in a specified column in a specified data set

Usage

hasField(fieldValue, columnName, data)

Arguments

fieldValue

A value to check for.

columnName

The column to check.

data

the data.frame to search.

Value

logical scalar. TRUE if field_value is found. FALSE otherwise

Examples

#TRUE
safetyGraphics:::hasField(
 fieldValue="Bilirubin (umol/L)",
 columnName="PARAM",
 data=safetyData::adam_adlbc
)

#FALSE
safetyGraphics:::hasField(
 fieldValue="Not_a_real_value",
 columnName="",
 data=safetyData::adam_adlbc
)


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