spc_vector: 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
(obj, m.min=1, m.max=15, =)
an object of class
spc, representing an observed or
expected frequency spectrum
determine the range of frequency classes to be returned
(defaulting to 1 ... 15)
TRUE, a vector containing the entire frequency
spectrum is returned, i.e.
m.max is set to
Note that the value of
m.min can still be overridden manually
to return only part of the spectrum.
spc.vector(obj, a, b) is fully equivalent to
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
Vm.spc for an alternative way of extracting spectrum
vectors from a
.spc object, and
extracting related information
## Brown Noun spectrum
## by default, extract first 15 elements
## first five elements
## just frequencies of spc elements 4 and 5
## same as