encode_codes_data {packDAMipd} | R Documentation |
Function to get the codes and the corresponding entries
Description
Function to get the codes and the corresponding entries
Usage
encode_codes_data(list_code_values, data_column_nos, the_data)
Arguments
list_code_values |
list of codes and values, given as list of lists |
data_column_nos |
the column numbers of data to look for the entries |
the_data |
the data where to look for |
Value
weight and vol units
Examples
data_file <- system.file("extdata", "medication_liq_codes.xlsx",
package = "packDAMipd")
ind_part_data <- load_trial_data(data_file)
data_column_nos = c(2,12)
list_of_code_names = list(c(1, 2),c("Morphine", "Oxycodone"))
encode_codes_data(list_of_code_names, data_column_nos, ind_part_data)
[Package packDAMipd version 1.1.0 Index]