encode_codes_data: Function to get the codes and the corresponding entries

Description Usage Arguments Value Examples

View source: R/help_cost_analysis_functions.R

Description

Function to get the codes and the corresponding entries

Usage

1
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

1
2
3
4
5
6
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 March 3, 2021, 5:07 p.m.