#
# LTBI screening
# N Green
# combine-costeffectiveness-tables.R
#
# combine all CE output in to single wide table
#
##TODO: this is just a cbind version of long combined_costeffectiveness_table
flder <-
list.dirs(parent_folder)[-1] %>%
sort()
tab <- matrix(seq_len(n.scenarios), ncol = 1)
for (i in seq_along(flder)) {
tab <-
read.csv(paste0(flder[i], "/costeffectiveness_table.csv")) %>%
cbind(tab, .)
}
tab <- tab[ ,!names(tab) == 'X']
policy_desc <- read.csv(paste0(parent_folder, "/policies-inputs.csv"))
write.csv(tab, file = paste0(parent_folder, "/wide_combined_costeffectiveness_tables.csv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.