Printing Type Frequency Lists (zipfR)

Share:

Description

Implementations of the print and summary methods for type frequency list objects (of class tfl).

Usage

1
2
3
4
5
  ## S3 method for class 'tfl'
print(x, all=FALSE, ...)

  ## S3 method for class 'tfl'
summary(object, ...)

Arguments

x, object

an object of class tfl, representing a type frequency list

all

if FALSE, only the twenty most frequent types will be shown (default)

...

other arguments passed on from generic method will be ignored

Details

NB: implementation details and format of the summary are subject to change in future releases

print.tfl 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 twenty most frequent types will be shown.

summary.tfl gives a concise summary of the most important information about the type frequency list. In addition to showing N V, the summary also indicates whether the list is incomplete and shows examples of type representations (if present).

Value

NULL

Unlike other implementations of the summary method, summary.tfl only prints a summary on screen and does not return a special "summary" object.

See Also

See the tfl manpage for details on tfl objects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## load Brown tfl
data(Brown.tfl)

## summary and print most frequent types
summary(Brown.tfl)
print(Brown.tfl)

## the whole type list (don't try
## this unless you have some time to
## spare)
## Not run: print(Brown.tfl,all=TRUE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.