Skip to content

Commit b5b40f0

Browse files
committed
Fix format_ma_results error
Call column must not be deleted from ma_results: otherwise the following error message occurs: "Names must be unique. These are duplicated: "b" at locations __ and __, ... beta, and se". This is a temporary fix, as the ma_results output (which only has the parameters used in meta-analysis, not the actual weighted average odds ratios for the models--those are in planks) still does not save to a csv, so this is not a complete fix. This change will allow planks to be saved, though.
1 parent 35a5bf1 commit b5b40f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/format_ma_results.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ format_ma_results <- function(ma_results, ma_ids) {
4242
}
4343

4444
# Delete the call column
45-
ma_results_df <- dplyr::select(ma_results_df, -"call")
45+
#ma_results_df <- dplyr::select(ma_results_df, -"call")
4646

4747
# Add a column for the meta-analysis IDs
4848
ma_results_df <- cbind(ID_meta = ma_ids, ma_results_df)

0 commit comments

Comments
 (0)