Description Usage Arguments Details Value See Also Examples
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).
1 | 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
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
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.