Learn R Programming

zipfR (version 0.6-70)

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 tfl
print(x, all=FALSE, ...)

# S3 method for 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

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.

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).

See Also

See the tfl manpage for details on tfl objects.

Examples

Run this code
# NOT RUN {
## 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)
# }

Run the code above in your browser using DataLab