Print methods for document-feature matrices
# S4 method for dfm
print(
x,
show.values = NULL,
show.settings = FALSE,
show.summary = TRUE,
ndoc = quanteda_options("print_dfm_max_ndoc"),
nfeat = quanteda_options("print_dfm_max_nfeat"),
...
)# S4 method for dfm
show(object)
# S4 method for fcm
print(
x,
show.values = NULL,
show.settings = FALSE,
show.summary = TRUE,
ndoc = quanteda_options("print_dfm_max_ndoc"),
nfeature = quanteda_options("print_dfm_max_nfeat"),
...
)
# S4 method for fcm
show(object)
# S3 method for fcm
head(x, n = 6L, nfeature = 6L, ...)
# S3 method for fcm
tail(x, n = 6L, nfeature = 6L, ...)
the dfm to be printed
print the dfm values; if called explicitly this will print all values.
print the settings used to create the dfm. See settings.
print a brief summary indicating the number of documents and features
max number of documents to print; default is from the
print_dfm_max_ndoc
setting of quanteda_options
max number of features to print; default is from the
print_dfm_max_nfeat
setting of quanteda_options
further arguments passed to Matrix::printSpMatrix2
the item to be printed