encode_codes_data: Function to get the codes and the corresponding entries

View source: R/help_cost_analysis_functions.R

encode_codes_dataR 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)

packDAMipd documentation built on May 29, 2024, 3:18 a.m.