@@ -146,7 +146,7 @@ for (g in groups) {
146146 )
147147
148148
149- list_table_1_1[[g]] <- cbind(as.data.frame(array_inci[, , 1, g, drop = F ]), as.data.frame(array_inci[, , 2, g, drop = F ]))
149+ list_table_1_1[[g]] <- cbind(as.data.frame(array_inci[, , 1, g, drop = FALSE ]), as.data.frame(array_inci[, , 2, g, drop = FALSE ]))
150150 # list_table_1_1[[g]] <- list_table_1_1[[g]] |> na.omit()
151151 list_table_1_1[[g]][, c(3, 10)] <- round(list_table_1_1[[g]][, c(3, 10)] * 100, 1)
152152 list_table_1_1[[g]][, c(3, 10)] <- round(list_table_1_1[[g]][, c(3, 10)] * 100, 1)
@@ -182,7 +182,7 @@ for (g in groups) {
182182 " vs. Arm B: ",
183183 ARMS_ARM_B
184184 )
185- list_table_1_2[[g]] <- cbind(as.data.frame(array_inci_comp[, , 1, g, drop = F ]), as.data.frame(array_inci_comp[, , 2, g, drop = F ]))
185+ list_table_1_2[[g]] <- cbind(as.data.frame(array_inci_comp[, , 1, g, drop = FALSE ]), as.data.frame(array_inci_comp[, , 2, g, drop = FALSE ]))
186186 # list_table_1_2[[g]] <- as.data.frame(cbind(array_inci_comp[, , 1, g], array_inci_comp[, , 2, g]))
187187 # list_table_1_2[[g]] <- list_table_1_2[[g]] |> na.omit()
188188 table_display_2 <- kableExtra::kable(list_table_1_2[[g]][, -6],
@@ -223,7 +223,7 @@ for (g in groups) {
223223 ARMS_ARM_B
224224 )
225225 # list_table_2_1[[g]] <- as.data.frame(cbind(array_er[, , 1, g], array_er[, , 2, g]))
226- list_table_2_1[[g]] <- cbind(as.data.frame(array_er[, , 1, g, drop = F ]), as.data.frame(array_er[, , 2, g, drop = F ]))
226+ list_table_2_1[[g]] <- cbind(as.data.frame(array_er[, , 1, g, drop = FALSE ]), as.data.frame(array_er[, , 2, g, drop = FALSE ]))
227227 # list_table_2_1[[g]] <- list_table_2_1[[g]] |> na.omit()
228228 table_display_3 <- kableExtra::kable(list_table_2_1[[g]],
229229 format = "latex",
@@ -260,7 +260,7 @@ for (g in groups) {
260260 " vs. Arm B: ",
261261 ARMS_ARM_B
262262 )
263- list_table_2_2[[g]] <- cbind(as.data.frame(array_er_comp[, , 1, g, drop = F ]), as.data.frame(array_er_comp[, , 2, g, drop = F ]))
263+ list_table_2_2[[g]] <- cbind(as.data.frame(array_er_comp[, , 1, g, drop = FALSE ]), as.data.frame(array_er_comp[, , 2, g, drop = FALSE ]))
264264 # list_table_2_2[[g]] <- as.data.frame(cbind(array_er_comp[, , 1, g], array_er_comp[, , 2, g]))
265265 # list_table_2_2[[g]] <- list_table_2_2[[g]] |> na.omit()
266266 if (length(list_table_2_2[[g]]) == 0) {
0 commit comments