Printing Frequency Spectra (zipfR)
## S3 method for class 'spc' print(x, all=FALSE, ...) ## S3 method for class 'spc' summary(object, ...)
x, object |
an object of class |
all |
if |
... |
other arguments passed on from generic method will be ignored |
NB: implementation details and format of the summary are subject to change in future releases
print.spc
works similar to the standard print
method for
data frames, but provides additional information about N and
V. Unless all
is set to TRUE
, only the first ten
non-zero spectrum elements will be shown.
summary.spc
gives a concise summary of the most important
information about the frequency spectrum. In addition to N
V, the first spectrum elements are shown. The summary will also
indicate whether the spectrum is incomplete, an expected spectrum, or
has variances (but does not show the variances).
NULL
Unlike other implementations of the summary
method,
summary.spc
only prints a summary on screen and does not return
a special "summary" object.
See the spc
manpage for details on spc
objects.
## load Brown verbs dataset data(BrownVer.spc) ## look at summary and print BrownVer.spc summary(BrownVer.spc) print(BrownVer.spc) ## print all non-zero spectrum elements print(BrownVer.spc,all=TRUE) ## estimate zm model and construct expected spectrum with ## variances zm <- lnre("zm",BrownVer.spc) zm.spc <- lnre.spc(zm,N(zm),variances=TRUE) ## summary and print for the expected spectrum summary(zm.spc) print(zm.spc)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.