输入R功能更容易显示

时间:2014-01-04 18:22:48

标签: r

是否有一个快捷方式可以用来查找进入R函数的所有输入以及各自的描述?我知道您可以随时?function.name,但帮助手册可以在网络浏览器中打开,也可以在屏幕右侧使用R studio打开。是否有任何快捷方式可以直接在控制台中看到输入或帮助描述?

2 个答案:

答案 0 :(得分:1)

args(function_name)
# prints a list of arguments
# not helpful if you're using the function for the first time and have no idea but
# very useful if you just need a quick reminder e.g how the arguments are named

BTW在安装R时,您可以选择是否要将帮助显示为HTML或在R中的基于文本的窗口中显示。(但首先您必须选择“自定义”而不是“典型”[?]安装。)

答案 1 :(得分:1)

也许在.Rprofile中设置options(help_type="text"),除了在Rstudio中我不知道解决方案。请参阅?help