【发布时间】:2021-12-17 20:58:12
【问题描述】:
如果 Value > 10,我想将字体更改为粗体和红色。如何在 flextable 中达到该值?
我的例子:
file_path <- "c:\\temp\\test_table.docx"
df <- data.frame(
InstanceName = c("Instance1", "Instance2", "Instance3", "Instance4", "Instance5"),
Value = c(15, 5, 11, 0, 5)
)
table_to_save <- flextable(df)
save_as_docx(
table_to_save,
path = file.path(file_path)
)
我想要什么:
【问题讨论】: