- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
一种不优雅的方法是在注释文本中添加 tex 代码行。
但是在 latex
中是否有更原生的做笔记的方式? Hmisc
的功能R中的包?
最佳答案
有一种方法不是在 Hmisc 中而是使用 starpolishr包裹,
install.packages("devtools")
library(devtools)
install_github("ChandlerLutz/starpolishr");library(starpolishr)
la<-latex(mtcars[1:2,1:5],file="example.tex",caption = "table using caption",
where="!htbp")
file0<-readLines("example.tex")
file0<-star_notes_tex(file0, note = "file using caption*")
cat(file0, file = paste0(getwd(),"/file0.tex"),sep="\n")
mt <- mtcars[1:2,1:5]
mt[1,1]<-paste0(mt[1,1],"\\tnote{*}")
la<-latex(mt,file="example1.tex",label=" ",caption="table using threeparttable",
where="!htbp")
file1<-readLines("example1.tex")
file1<-star_notes_tex(file1, note.type = "threeparttable",
note = "* notes with threeparttable : For this example you must use both label and caption, the
threepartable code is meant to be used with tables generated by
stargazer where a row with label is present. Otherwise the threepart table
argument is badly positionned.")
cat(file1, file = paste0(getwd(),"/file1.tex"),sep="\n")
关于r - 如何在 R 中的 Hmisc 中将注释附加到 latex 表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20674065/
刚开始使用 R 并试图弄清楚在创建“汇总表”时什么能满足我的需求。我习惯了 SPSS 中的自定义表格,gmodels 包中的 CrossTable 功能让我几乎可以到达我需要的地方;更不用说它对于刚开
我需要使用 Hmisc 包将表格中的标题旋转 90 度。我尝试更改“colnamesTexCmd”命令,但列标题没有任何变化。 下面是我的问题的可重现示例 --- title: "" author:
像往常一样,我得到了一些 SPSS 文件,并使用 Hmisc 包中的 spss.get 函数将其导入到 R 中。我对 Hmisc::spss.get 添加到 data.frame 中所有变量的 lab
首先,我会告诉你我正在尝试做大局,以防万一我做错了。我有一个嵌套表,我想使用 knit 将其作为 RStudio 中的 LaTeX 表输出。在我尝试添加标题之前我很好。我尝试了 tables vign
我一直在尝试学习使用 Hmisc 包中的 summary() 函数来生成包含卡方检验的交叉表。在这个委员会的帮助下,我快要成功了。我只是不知道如何获取行百分比而不是列百分比。 #Data: v1 1
我正在尝试从 this file 中获取带有百分比的交叉表使用 Hmisc .但为什么是summary()从变量 OCCUPATION 中删除类别(“OTHERS”)? library(Hmisc)
是否有一种简单的方法可以使用 Hmisc R 库中的 method="reverse" 来处理 summary.formula 返回的传统四分位数?我想为我的每个连续变量获取均值/标准差 + 最小值/
describe(letters[1:19]) 输出频率表,但 describe(letters[1:20]) 不输出。我尝试设置 listunique=10^7 和 listnchar=0 但这没有
我正在使用 r 3.3.3、dplyr 0.7.4 和 Hmisc 4.1-1。我注意到加载包的顺序会影响 dplyr::summaries 函数是否工作。我知道以不同的顺序加载包会屏蔽某些函数,但我
我试图通过使用 Hmisc 的 cut2 来计算向量的等分位数切割。 library(Hmisc) c prop.table(table(cut2(c, g=3) ) ) [-4.18,-2.019
该行为涉及 3 个包:Hmisc , psych和 mediation .加载包后 psych和 mediation函数[.describe来自 Hmisc ,但是没有冲突,也没有加载这个包。为什么以
我如何使用 Hmisc的 latex获得一张像...... Group 1 Group 2 d n be
我如何从 Hmisc 中获取摘要的输出,并以正确的格式在 knitr 中呈现,并最好将其传输到 word 作为协作者的表格? 下面的 block 生成了一个表格,但格式是关闭的(变量的所有值标签和数字
我有一根标有 Hmisc R 包的色谱柱。列的类是 c("labelled", "numeric")。如果我计算整个列的 median(),返回的中位数仍然是 c("labelled", "numer
我正在尝试在由组分隔的标题下方设置列标题和水平线。当我执行以下操作时,它会起作用, library(Hmisc) data(mtcars) latex(mtcars, file ='', cgroup
我在加载和运行Hmisc软件包时遇到问题。安装它时,出现以下错误; library(Hmisc) Loading required package: lattice Loading required
我正在使用 xYplot 绘制带有误差线的回归结果。但是,xYplot 仅绘制水平误差线,我需要垂直误差线。四处寻找解决方案,我发现 this thread 有人问了大致相同的问题。经过一些消息后,提
我正在使用这个: latex(data, cgroup=c("sample1", "sample2"), n.cgroup=c(2,2), file="") 生成一个 tex 表。 输出看起来像这样:
我在 R 中有一个数据框,不幸的是其中包含包含美元符号的字符串。当函数 latex() 来自包 Hmisc将此数据框转换为 LaTeX 表格,美元符号未转义。这使 LaTeX 无法编译。 Hmisc
我在 R 中有一个数据框,不幸的是其中包含包含美元符号的字符串。当函数 latex() 来自包 Hmisc将此数据框转换为 LaTeX 表格,美元符号未转义。这使 LaTeX 无法编译。 Hmisc
我是一名优秀的程序员,十分优秀!