unitname(spatstat)
unitname()所属R语言包:spatstat
Name for Unit of Length
长度单位的名称
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Inspect or change the name of the unit of length in a spatial dataset.
检查或更改名称的单位在空间数据集的长度。
用法----------Usage----------
unitname(x)
## S3 method for class 'im'
unitname(x)
## S3 method for class 'kppm'
unitname(x)
## S3 method for class 'minconfit'
unitname(x)
## S3 method for class 'owin'
unitname(x)
## S3 method for class 'ppm'
unitname(x)
## S3 method for class 'ppp'
unitname(x)
## S3 method for class 'psp'
unitname(x)
## S3 method for class 'quad'
unitname(x)
## S3 method for class 'slrm'
unitname(x)
unitname(x) <- value
## S3 replacement method for class 'im'
unitname(x) <- value
## S3 replacement method for class 'kppm'
unitname(x) <- value
## S3 replacement method for class 'minconfit'
unitname(x) <- value
## S3 replacement method for class 'owin'
unitname(x) <- value
## S3 replacement method for class 'ppm'
unitname(x) <- value
## S3 replacement method for class 'ppp'
unitname(x) <- value
## S3 replacement method for class 'psp'
unitname(x) <- value
## S3 replacement method for class 'quad'
unitname(x) <- value
## S3 replacement method for class 'slrm'
unitname(x) <- value
参数----------Arguments----------
参数:x
A spatial dataset. Either a point pattern (object of class "ppp"), a line segment pattern (object of class "psp"), a window (object of class "owin"), a pixel image (object of class "im"), a quadrature scheme (object of class "quad"), or a fitted point process model (object of class "ppm" or "kppm" or "slrm" or "minconfit").
空间数据集。无论是点图案(类的对象"ppp"),线段图案(类的对象"psp"),一个窗口(类的对象"owin"),一个像素的图像(类的对象"im"),的正交方案(对象类"quad"),或拟合点过程模型(对象类"ppm"或"kppm"或"slrm"或 "minconfit"“)。
参数:value
Name of the unit of length. See Details.
长度的单位的名称。查看详细信息。
Details
详细信息----------Details----------
Spatial datasets in the spatstat package may include the name of the unit of length. This name is used when printing or plotting the dataset, and in some other applications.
spatstat包中的空间数据集可能包括长度单位的名称。这个名称是用来在打印或绘制的数据集,而在其他一些应用程序。
unitname(x) extracts this name, and unitname(x) <- value sets the name to value.
unitname(x)提取这个名字,和unitname(x) <- value到value设置的名称。
A valid name is either
有效的名称是
a single character string
一个字符串
a vector of two character strings giving the singular and plural forms of the unit name
一个向量的两个字符串的单数和复数形式的单位名称
a list of length 3, containing two character strings giving the singular and plural forms of the basic unit, and a number specifying the multiple of this unit.
的长度为3的列表,含有两个字符串给予的单数和复数形式的基本单元,和一个数字,指定本机的多个。
Note that re-setting the name of the unit of length does not affect the numerical values in x. It changes only the string containing the name of the unit of length. To rescale the numerical values, use rescale.
请注意,重新设定长度的单位的名称不影响中的数值x。它改变了唯一的字符串,其中包含的名称的长度单位。要重新调整的数值,使用rescale。
值----------Value----------
The return value of unitname is an object of class "units" containing the name of the unit of length in x. There are methods for print and summary.
unitname的返回值是类的一个对象"units"在x的包含长度单位的名称。有方法print和summary。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
参见----------See Also----------
rescale, owin, ppp
rescale,owin,ppp
实例----------Examples----------
X <- runifpoint(20)
# if the unit of length is 1 metre:[如果单位的长度为1米]
unitname(X) <- c("metre", "metres")
# if the unit of length is 6 inches:[如果单元的长度是6英寸:]
unitname(X) <- list("inch", "inches", 6)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|