作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
是否可以根据 tstat 对估计值进行加粗/着色。
对于 ex - 如果 tstat 大于 1.96 则粗体估计值
这是 my previous question 的延续我必须使用 flextable。
library(dplyr)
library(flextable)
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)
# tibble
tbl <- tibble(attribute, estimate, tstat) %>%
as_flextable()
最佳答案
另一种使用灵活行选择器的解决方案:
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(~ tstat > 1.96,2)
关于r - flextable 中有条件的粗体值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69782546/
下面是我用来制作 1px 文本描边轮廓的代码。但是如何使轮廓变粗呢?如果我只是用“5px”替换所有“1px”,结果看起来很疯狂。 HTML Hello! CSS .element { color:
我是一名优秀的程序员,十分优秀!