我用了
library(help="stats")$"info"[[2]]
获取可用函数列表及其在 中的描述stats
。我想用这张表格制作一张xtable
用于Sweave
LaTex 的表格。
我在 R 中使用了这个命令:
library(xtable)
xtable(library(help="stats")$"info"[[2]])
并收到以下错误消息:
Error in UseMethod("xtable") :
no applicable method for 'xtable' applied to an object of class "character"
如果有人指导我这样做,我将不胜感激。提前致谢。