N-V-Vm.tfl {zipfR} | R Documentation |
Access Methods for Type Frequency Lists (zipfR)
Description
Return the sample size (N.tfl
) and vocabulary size
(V.tfl
) of the type frequency list represented by a tfl
object, as well as class sizes (Vm.tfl
) of the corresponding
frequency spectrum.
Note that these functions are not user-visible. They can be called
implicitly through the generic methods N
, V
and
Vm
, applied to an object of type tfl
.
Usage
## S3 method for class 'tfl'
N(obj, ...)
## S3 method for class 'tfl'
V(obj, ...)
## S3 method for class 'tfl'
Vm(obj, m, ...)
Arguments
obj |
an object of class |
m |
non-negative integer value determining the frequency class
|
... |
additional arguments passed on from generic method will be ignored |
Details
Only a single value is allowed for m
, which may also be 0.
In order to obtain multiple class sizes V_m
, convert the type
frequency list to a frequency spectrum with tfl2spc
first.
For an incomplete type frequency list, Vm.tfl
will return
NA
if m
is outside the range of listed frequencies
(i.e. for m < f.min
or m > f.max
).
Value
N.tfl
returns the sample size N
, V.tfl
returns the
vocabulary size V
(or expected vocabulary size E[V]
), and
Vm.tfl
returns the number of types that occur exactly m
times in the sample, i.e. the class size V_m
.
See Also
N
, V
, Vm
for the generic
methods and links to other implementations
tfl
for details on type frequency list objects and links
to other relevant functions