正在加载图片...
2.3在线帮助 R中给予的在线帮助能提供关于如何使用函数的非常有用的信息。关于某 个特定函数的帮助能够直接被调出来,如运行: >?1m 会立即显示关于函数1m()(线性模型)的帮助页面。命令help(1m)和help("1m") 具有同样的效果。但在查询关于某特殊语法意义字符的帮助时必须用后一种 形式,如: >?* Error:syntax error >help("*") Arithmetic package:base R Documentation Arithmetic Operators .. 启动帮助将会打开一个页面(取决于操作系统),第一行一般会显示某函数 或操作命令的所属的包(package),然后是标题,标题下面是则是一些详细信 息。 Description:brief description. Usage:for a function,gives the name with all its arguments and the possible options (with the corresponding default values);for an operator gives the typical use. Arguments:for a function,details each of its arguments. Details:detailed description. Value:if applicable,the type of object returned by the function or the oper- ator. See Also:other help pages close or similar to the present one. Examples:some examples which can generally be executed without opening the help with the function example. 对初学者而言,参考帮助中Examples部分的信息是很有用的。而一般 应该仔细阅读Arguments中的一些说明也是非常有必要的。帮助中还包含了 其它一些说明部分,如Note,References或Author(s)等。 默认状态下,函数help只会在被载入内存中的包中搜索。选项try.all.package 在缺省值是FALSE,但如果把它设为TRUE,则可在所有包中进行搜索: 72.3 在线帮助 R中给予的在线帮助能提供关于如何使用函数的非常有用的信息。关于某 个特定函数的帮助能够直接被调出来,如运行: > ?lm 会立即显示关于函数lm()(线性模型)的帮助页面。命令help(lm) 和help("lm") 具有同样的效果。但在查询关于某特殊语法意义字符的帮助时必须用后一种 形式,如: > ?* Error: syntax error > help("*") Arithmetic package:base R Documentation Arithmetic Operators ... 启动帮助将会打开一个页面(取决于操作系统),第一行一般会显示某函数 或操作命令的所属的包(package),然后是标题,标题下面是则是一些详细信 息。 Description: brief description. Usage: for a function, gives the name with all its arguments and the possible options (with the corresponding default values); for an operator gives the typical use. Arguments: for a function, details each of its arguments. Details: detailed description. Value: if applicable, the type of object returned by the function or the oper￾ator. See Also: other help pages close or similar to the present one. Examples: some examples which can generally be executed without opening the help with the function example. 对初学者而言,参考帮助中Examples部分的信息是很有用的。而一般 应该仔细阅读Arguments中的一些说明也是非常有必要的。帮助中还包含了 其它一些说明部分,如Note, References或Author(s)等。 默认状态下,函数help只会在被载入内存中的包中搜索。选项try.all.package 在缺省值是FALSE, 但如果把它设为TRUE,则可在所有包中进行搜索: 7
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有