View source: R/util-hasField.R
hasField | R Documentation |
This checks whether a specific value is found in a specified column in a specified data set
hasField(fieldValue, columnName, data)
fieldValue |
A value to check for. |
columnName |
The column to check. |
data |
the data.frame to search. |
logical scalar. TRUE if field_value is found. FALSE otherwise
#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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.