`wide_param_to_long()` converts a wide dataframe to long by consolidating all of the parameter columns as a single parameter column and accompanying result and unit columns.
Usage
wide_param_to_long(
.data,
col_list,
param_col = "Parameter",
result_col = "Result",
unit_col = "Unit"
)Arguments
- .data
Dataframe.
- col_list
List. List of parameter columns. Each column should include an underscore (`_`) between the parameter and units name, eg "Parameter_Unit"
- param_col, result_col, unit_col
String. Names for new columns that will contain the parameter, result, and unit values respectively. Default values "Parameter", "Result", and "Unit".