Create Vector of Spectrum Elements (zipfR)
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(obj, m.min=1, m.max=15, all=FALSE)
obj |
an object of class |
m.min, m.max |
determine the range of frequency classes to be returned (defaulting to 1 ... 15) |
all |
if |
spc.vector(obj, a, b)
is fully equivalent to Vm(obj,
a:b)
(and is implemented in this way).
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).
spc
for more information about spc
objects and
links to relevant functions
## Brown Noun spectrum data(BrownNoun.spc) ## by default, extract first 15 elements spc.vector(BrownNoun.spc) ## first five elements spc.vector(BrownNoun.spc,1,5) ## just frequencies of spc elements 4 and 5 spc.vector(BrownNoun.spc,4,5) ## same as Vm(BrownNoun.spc,4:5)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.