getLabelParamcd {clinUtils} | R Documentation |
Get label for a parameter code
Description
This function gets the labele for a parameter code extracted from the 'PARAM' column.
Usage
getLabelParamcd(paramcd, data, paramcdVar = "PARAMCD", paramVar = "PARAM")
Arguments
paramcd |
Character vector with parameter code(s). |
data |
Data.frame with data. |
paramcdVar |
String with column containing the |
paramVar |
String with column containing the |
Value
Named character vector with label for parameter code or
paramcd
if label is missing.
Author(s)
Laure Cougnaud
Examples
# for ADaM
data(dataADaMCDISCP01)
getLabelParamcd(paramcd = "CHOL", data = dataADaMCDISCP01$ADLBC)
# for SDTM
data(dataSDTMCDISCP01)
getLabelParamcd(
paramcd = "ALB",
data = dataSDTMCDISCP01$LB,
paramcdVar = "LBTESTCD",
paramVar = "LBTEST"
)
[Package clinUtils version 0.2.0 Index]