
Last chance! 50% off unlimited learning
Sale ends in
Function to get the codes and the corresponding entries
encode_codes_data(list_code_values, data_column_nos, the_data)
weight and vol units
list of codes and values, given as list of lists
the column numbers of data to look for the entries
the data where to look for
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)
Run the code above in your browser using DataLab