Learn R Programming

quanteda (version 0.99)

print.dfm: print a dfm object

Description

print methods for document-feature matrices

Usage

# S4 method for dfm
print(x, show.values = FALSE, show.settings = FALSE,
  show.summary = TRUE, ndoc = getOption("quanteda_print_dfm_max_ndoc"),
  nfeature = getOption("quanteda_print_dfm_max_nfeature"), ...)

# S4 method for dfm show(object)

# S4 method for fcm print(x, show.values = FALSE, show.settings = FALSE, show.summary = TRUE, nfeature = 20L, ...)

# S4 method for fcm show(object)

Arguments

x

the dfm to be printed

show.values

print the dfm values; if called explicitly this will print all values, overriding ndoc and nfeature.

show.settings

print the settings used to create the dfm. See settings.

show.summary

print a brief summary indicating the number of documents and features

ndoc

max number of documents to print; default is from the quanteda_print_dfm_max_ndoc setting

nfeature

max number of features to print; ; default is from the quanteda_print_dfm_max_nfeature setting

...

further arguments passed to or from other methods

object

the item to be printed

See Also

quanteda_options