spc.vector(zipfR)
spc.vector()所属R语言包:zipfR
Create Vector of Spectrum Elements (zipfR)
创建矢量频谱元素(zipfR)的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
spc.vector returns a selected range of elements from a frequency spectrum as a plain numeric vector (which may contain entries with V_m = 0, unlike the spc object itself).
spc.vector返回元素的选择范围从频谱作为一个普通的数字向量(其中可能包含与V_m = 0,不像spc对象本身)。
用法----------Usage----------
spc.vector(obj, m.min=1, m.max=15, all=FALSE)
参数----------Arguments----------
参数:obj
an object of class spc, representing an observed or expected frequency spectrum
一个对象的类spc,较观察到的或预期的频谱
参数:m.min, m.max
determine the range of frequency classes to be returned (defaulting to 1 ... 15)
确定范围内的频率类的返回(默认为1 ... 15)
参数:all
if TRUE, a vector containing the entire frequency spectrum is returned, i.e. m.max is set to max(obj$m). Note that the value of m.min can still be overridden manually to return only part of the spectrum.
如果TRUE,返回一个向量,包含整个频谱,即m.max设置为max(obj$m)。需要注意的是m.min仍然可以手动改写,只返回部分频谱。
Details
详细信息----------Details----------
spc.vector(obj, a, b) is fully equivalent to Vm(obj, a:b) (and is implemented in this way).
spc.vector(obj, a, b)是完全等价的Vm(obj, a:b)(并以这种方式实现)。
值----------Value----------
A numeric vector with the selected elements of the frequency spectrum. In this vector, empty frequency classes (V_m = 0) are represented by 0 entries (unlike the spc object, which omits all empty classes).
甲数值向量与选定元素的频率频谱。在此向量中,空频度等级(V_m = 0)表示由0项(与spc对象,忽略所有空类)。
参见----------See Also----------
spc for more information about spc objects and links to relevant functions
spcspc对象和链接到相关的功能的更多信息,
Vm.spc for an alternative way of extracting spectrum vectors from a .spc object, and N.spc, V.spc, VV.spc, VVm.spc for extracting related information
Vm.spc的另一种方法提取光谱向量从一个.spc对象,和N.spc,V.spc,VV.spc,VVm.spc提取相关信息
实例----------Examples----------
## Brown Noun spectrum[#名词频谱布朗]
data(BrownNoun.spc)
## by default, extract first 15 elements[#默认情况下,提取前15个元素]
spc.vector(BrownNoun.spc)
## first five elements[#第一个五行]
spc.vector(BrownNoun.spc,1,5)
## just frequencies of spc elements 4 and 5 [只是频率的SPC元素4和5]
spc.vector(BrownNoun.spc,4,5)
## same as[#相同]
Vm(BrownNoun.spc,4:5)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|