powered by
Checks whether a specified column is found in a specified data set
hasColumn(columnName, data)
logical scalar. TRUE if the column is found. FALSE otherwise
The column to look for.
the data.frame to search.
safetyGraphics:::hasColumn(columnName="PARAM",data=safetyData::adam_adlbc) #TRUE safetyGraphics:::hasColumn(columnName="Not_a_column",data=safetyData::adam_adlbc) #FALSE
Run the code above in your browser using DataLab