【发布时间】:2021-10-25 16:56:02
【问题描述】:
如何使用 R 中的 gt 包在列名中添加括号 ()? r = grp35_rs12468485 中的列名。我想要的:grp35(rs12468485)
我已经用 gt 包创建了一个表:
table1_pgx <-
pgx_rs %>%
gt() %>%
tab_header(
title = md("pgx")
谢谢!
【问题讨论】:
如何使用 R 中的 gt 包在列名中添加括号 ()? r = grp35_rs12468485 中的列名。我想要的:grp35(rs12468485)
我已经用 gt 包创建了一个表:
table1_pgx <-
pgx_rs %>%
gt() %>%
tab_header(
title = md("pgx")
谢谢!
【问题讨论】:
解决方法可以在:https://gt.rstudio.com/articles/intro-creating-gt-tables.html
对我来说这很有效:
pgx_table <- pgx_rs %>%
gt() %>%
tab_header(
title = md("pgx")) %>%
cols_label(
grp35_rs12468485 = html("gpr35(rs12468485)")
)
【讨论】: