中圈顶大话 China University of Geosciences 艰告樸素求真务穹了 查看帮助文件 如何知道TSA程序包内部都有哪些函数? 最常用的方法 1输入命令??TSA 2查看pd帮助文档(从程序包下载页面下载)
查看帮助文件 如何知道TSA程序包内部都有哪些函数? 最常用的方法: 1 输入命令 ??TSA 2 查看pdf帮助文档(从程序包下载页面下载)
中圈顶大话 China University of Geosciences 艰告樸素求真务穹了 帮助文件的内容以m函数为例:?m lm stats Fitting Linear models Description is used to fit linear models. It can be used to carry out regression, single stratum analysis of variance and analysis of covariance (a ln(formula, dat a, subs E FALSE, y FALSE, qr TRUE singular. ok TR NULL, offset, .. guments an object of class"formula (or one that can be coerced to that class): a symbolic description of the model to be fitted. the de an optional data frame list or environment (or object coercible by as, data frame to a data frame) containing the variables in th environment from which lm is called. an optional vector speci fying a subset of observations to be used in the fitting process an optional vector of weights to be used in the fitting process. Should be NULL or a numeric vector If non-NULL, weighted least squares is used. See also 'Details na action a function which indicates what should happen when the data contain NAs. the default is set by the na action setting of options, a NULL. no action, Val be useful the method to be used; for fitting, currently only method ="gr" is supported; method ='model frame"returns the model frame(the
帮助文件的内容 以lm函数为例:?lm
中圈顶大话 China University of Geosciences 艰告樸素求真务穹了 为什么要学习编程? 界面操作直观易学,但也存在一些不足 操作的过程难以保存,数据处理不够灵活, 在进行步骤繁多的数据处理工作时十分费时费 力;在建立模型或自己编写函数时也会遇到困 难。而这些困难可以通过编程解决。 学习R编程,首先要了解R的函数、对象及 其操作
为什么要学习编程? 界面操作直观易学,但也存在一些不足: 操作的过程难以保存,数据处理不够灵活, 在进行步骤繁多的数据处理工作时十分费时费 力;在建立模型或自己编写函数时也会遇到困 难。而这些困难可以通过编程解决。 学习R编程,首先要了解R的函数、对象及 其操作
中圈顶大话 China University of Geosciences 艰告樸素求真务穹了 、R函数与对象
二、 R函数与对象
中圈顶大话 China University of Geosciences 艰告樸素求真务穹了 R的函数 R是一种解释性语言,不需要先编译成.eκe文 件,输入后可直接运行。 函数形式 function(对象,选项 平均值mean( 线性回归1m(y~x,data=test) R处理的所有数据、变量、函数和结果都以对象 的形式保存
R的函数 R是一种解释性语言,不需要先编译成.exe文 件,输入后可直接运行。 函数形式 function(对象,选项= ) 平均值 mean() 线性回归 lm(y~x, data=test) R处理的所有数据、变量、函数和结果都以对象 的形式保存