Tract-methods(sampSurf)
Tract-methods()所属R语言包:sampSurf
Methods for "Tract" Object Construction in package
“道”的对象在建包的方法。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
There are several methods available for the Tract generic function, which will generate valid objects of class "Tract". These constructors are the preferred method for generating such objects instead of using new. Other constructors could be added by extention to
有几种方法可用的Tract通用功能,这将产生有效的对象类"Tract"。这些构造产生这样的对象,而不是使用new的首选方法。通过延伸到其他构造函数,可以添加
方法----------Methods----------
Several of the constructors listed below end up calling this one for final object construction, so it could be considered the base constructor. It is patterned after the construction of a "GridTopology" object in the "sp" package. Please note that it is best to either explicitly name the arguments when using this constructor, or to include an initial missing argument (see examples in the generic) to invoke it, since supplying an unnamed numeric scalar as the first argument will instead, invoke the second constructor below (with an
一些下面列出了最终的构造函数调用这个最终对象的构造,所以可以认为它的基础构造。它是仿照的建设一个"GridTopology"对象的sp包。请注意,最好是明确命名的参数时,使用此构造函数,或有一个初步缺少的参数(请参阅在通用的例子)来调用它,因为作为第一个参数提供一位不愿透露姓名的数字标量,调用下面的第二构造函数(带有一个
usage...
使用...
cellSize: The size of the individual grid cells in the appropriate units. Note particularly that the restriction has been made that grid cells must be square, so this is expecting a numeric scalar.
cellSize:各个网格的大小单元在适当的单位。特别要注意的限制,必须是正方形网格单元,所以这是预期数字标。
cellDims: The dimensions in terms of number of cells in the x and y directions. The to match a desired extent in terms of the units of x and y, one must take the cellSize into account when determining these limits. For example, if the extent in the x and y directions are to be 10 units, and the cellSize is 0.5 units, then the specify this argument as c(x=20,y=20).
cellDims:在x和y方向上的单元数的尺寸。的在x和y的单位,以匹配所需的程度,人们必须考虑cellSize考虑到,当确定这些限制。例如,如果在x和y方向上的程度是10个单位,和cellSize是0.5个单位,然后指定这个参数设置为c(x=20,y=20)。
cellCenter: This is the center point for the grid cell at the origin of the tract. If the cellSize is 0.5 units and the minimum in x and y is (0,0), then this would be c(x=0.25, y=0.25). Note that we can specify lower limts other than zero for the tract using this method.
cellCenter:这是在原产地的呼吸道网格单元格的中心点。如果cellSize是0.5个单位,和x和y中的最小值是(0,0),那么这将是c(x=0.25, y=0.25)。请注意,我们可以指定限制温度大于零的道,使用这种方法。
units: Either “English” or “metric”. These must be conformable with the projection in spUnits.
units:“英语”或“公制”。这些都必须按照spUnits投影。
data: The default is to set all grid cells to zero. One can either specify a numeric scalar which will be replicated for all cells, or a numeric vector the same length as the number of grid cells; these will be assigned in sequence to the grid.
data:默认设置所有网格单元格为零。一个可以指定一个数字标量,它可用于所有单元,或一个数值向量的网格单元的数目相同的长度,将被复制,这些将被分配序列到网格中。
spUnits: A valid CRS object specifying the Coordinate Reference System. This defaults to NA, which means you want to use your own user-defined system, say for a sample plot located in the field.
spUnits:有效的CRS对象指定的坐标参考系统。这是预设NA,这意味着你要使用自己的用户定义的系统,在外地一个样地说。
description: A character vector description of the tract.
description:一个字符向量描述的道。
runQuiet: TRUE: suppress any messages; FALSE: echo messages.
runQuiet:TRUE:禁止任何消息,FALSE:回应消息。
...: Other arguments to be passed along (not used currently).
...:其他参数被传递(目前未使用)。
In this second constructor, the object argument should be a numeric vector specifying the maximum extents of the tract. The tract minimum is always assumed to be at (0,0) for this method. If some other minima is desired, use one of the other
在这第二个构造函数,object参数应该是一个数值向量,指定最大程度的呼吸道。道最小值总是假定为(0,0),此方法。如果需要其他一些极小的,使用的其他
usage...
使用...
object: A length two vector with names c("x", "y") specifying the maximal extents of the tract in these coordinates.
object:两个向量的长度的名字c("x", "y")指定了最大程度的在这些座标道。
runQuiet: TRUE: suppress any messages; FALSE: echo messages.
runQuiet:TRUE:禁止任何消息,FALSE:回应消息。
...: Other arguments to be passed along.
...:其他参数传递下去。
All other arguments as defined for the other constructors above.
所有以上的其他构造函数定义的参数。
This construtor allows creation of a “Tract” object using a
这construtor允许创造了“道”的对象使用
usage...
使用...
object: A 2x2 matrix with rownames c("x","y") and column names c("min","max"). The matrix therefore specifies the bounding box extents in the plane. The origin can be anywhere.
object:2×2矩阵与行名c("x","y")和列名c("min","max")。因此,矩阵指定的边界框在平面范围。可以在任何地方的起源。
All other arguments as defined for the other constructors above.
所有以上的其他构造函数定义的参数。
Finally this constructor takes an object of class
最后,这个构造函数类的一个对象
usage...
使用...
object: A valid object of type "RasterLayer".
object:一个有效的对象的类型"RasterLayer"。
All other arguments as defined for the other constructors above.
所有以上的其他构造函数定义的参数。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|