我一直在使用xtable包创建R矩阵中的HTML。当我在循环中使用函数kable时,它没有输出任何内容。所以我开始使用print函数,它起作用了。问题是,当我使用print函数时,会在表##中打印出大量的“”。有没有办法在循环中打印我的##,但避免每行的“”?library("xtable", lib.loc="~/R/win-library/3.1")
for(i in 1:3)
我编写了这段代码,以便在if..elsif..else语句中打印不同的表。if (sum(df_final2$change)!(df_final3) cat("The number of peptides are the same\n")
The new peptides are:
The rest of peptides