latticeParseFormula(lattice)
latticeParseFormula()所属R语言包:lattice
Parse Trellis formula
解析网格式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
this function is used by high level Lattice functions like xyplot to parse the formula argument and evaluate various components of the data.
高水平格的功能,如使用此功能xyplot解析公式参数和评估数据的各个组成部分。
用法----------Usage----------
latticeParseFormula(model, data, dimension = 2,
subset = TRUE, groups = NULL,
multiple, outer,
subscripts,
drop)
参数----------Arguments----------
参数:model
the model/formula to be parsed. This can be in either of two possible forms, one for 2d and one for 3d formulas, determined by the dimension argument. The 2d formulas are of the form y ~ x| g1 * ... *gn, and the 3d formulas are of the form z ~ x * y | g1 * ...* gn. In the first form, y may be omitted. The conditioning variables g1, ...,gn can be omitted in either case.
模型/公式进行解析。这可能是两种可能的形式,一个用于二维和三维公式dimension参数确定,在任。 2D公式形式y ~ x| g1 * ... *gn,3D公式形式z ~ x * y | g1 * ...* gn。在第一种形式,y可以省略。条件变量g1, ...,gn在这两种情况下可以省略的。“
参数:data
the environment/dataset where the variables in the formula are evaluated.
环境/集计算公式中的变量。
参数:dimension
dimension of the model, see above
维模型,见上面
参数:subset
index for choosing a subset of the data frame
指数选择的数据框中的一个子集
参数:groups
the grouping variable, if present
分组变量,如果存在
参数:multiple, outer
logicals, determining how a "+" in the y and x components of the formula are processed. See xyplot for details
逻辑值,决定如何处理一个+y和x的公式组件。 xyplot详情
参数:subscripts
logical, whether subscripts are to be calculated
要计算逻辑,是否标
参数:drop
logical or list, similar to the drop.unused.levels argument in xyplot, indicating whether unused levels of conditioning factors and data variables that are factors are to be dropped.
逻辑或列表,类似drop.unused.levelsxyplot参数,指示是否被丢弃未使用的制约因素和这些因素的数据变量的水平。
值----------Value----------
returns a list with several components, including left, right, left.name, right.name, condition for 2-D, and left, right.x, right.y, left.name, right.x.name, right.y.name, condition for 3-D. Other possible components are groups, subscr
与几部分组成,包括left, right, left.name, right.name, condition的2-D,left, right.x, right.y, left.name, right.x.name, right.y.name, condition的3-D返回一个列表。其他可能的组件组,subscr
作者(S)----------Author(s)----------
Saikat DebRoy, Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
参见----------See Also----------
xyplot, Lattice
xyplot,Lattice
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|