Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print_tfl

Printing Type Frequency Lists (zipfR)


Description

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

Usage

## 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

## 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)
## End(Not run)

zipfR

Statistical Models for Word Frequency Distributions

v0.6-70
GPL-3
Authors
Stefan Evert <stefan.evert@fau.de>, Marco Baroni <marco.baroni@unitn.it>
Initial release
2020-10-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.