是否可以根據 tstat.粗體/顏色估計值?
例如,如果 tstat 大于 1.96,則為粗體估計值
這是
uj5u.com熱心網友回復:
另一種解決方案:
library(dplyr)
library(flextable)
set.seed(4123)
attribute <- c("b0", "b1", "b2", "b3", "b4", "b5")
estimate <- round(runif(n = 6, min = 0, max = 5), 2)
tstat <- round(runif(n = 6, min = 0, max = 5), 2)
tbl <- tibble(attribute, estimate, tstat)
tbl %>%
flextable() %>%
bold(tbl$tstat > 1.96,2)

轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/343295.html
上一篇:如何構建表格以捕獲更改
下一篇:SQL計數具有行值的不同列
