Skip to content

Commit 441669d

Browse files
authored
fix bug when there is no common cells in 1-dim tables
1 parent 137d353 commit 441669d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/multitable.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ tab_multi_manager <- function(
454454
)
455455

456456
# update of common cells that have been modified
457-
modified <- common_cells[common_cells[[var_secret_apriori]] != common_cells[[var_secret]],all_expl_vars]
457+
modified <- common_cells[common_cells[[var_secret_apriori]] != common_cells[[var_secret]],all_expl_vars, drop=FALSE]
458458
# modified <- if(sum(is.na(modified))>0) modified[1,][-1,] else modified
459459
if(nrow(modified) > 0){
460460
modified <- cbind(modified, iteration = num_iter_all)

0 commit comments

Comments
 (0)