在R中将“+”等特殊字符转换为html

问题描述

我使用 R Markdown 来创建财务分析,但不太了解。我将所有数据从彭博下载到 Excel。此 Excel 已在第一列中使用“+”等字符进行样式设置。

我知道字符“+”是从 html 中保留的,而 html 代码是“+”,但我不知道如何使用此代码更改 +..

我使用函数 read_excel 将我的 Excel 文件导入到 R Markdown。之后,我使用以下函数创建一个 html 文档:

kable(data,"html",row.names = FALSE,format.args = list(big.mark="'"),digits = 1) %>%
  kable_styling(data,bootstrap_options = c("striped","bordered","condensed"))%>%
  add_indent(oneindent,level_of_indent = 0) %>%
  add_indent(twoindent,level_of_indent = 1)

你知道如何用代码“+”更改“+”,我可以在我的 html 文件中看到 + 吗?

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)