A Collection is simply a grouping of one or multiple Documents, Expressions or Terms. You can create a Collection on any combination of these.

Collection(entry_list)

Arguments

entry_list

list of objects containing one of the following classes: Term, Document or Expression

Slots

entries

list of documents, terms or expressions

Examples

# NOT RUN {
# Get reuters subset data
data("fps_train")

# Retrieve documents
docs <- fps_train$fingerprints

# This is a list of fingerprinted documents
# They can be turned into a collection as follows
col <- Collection(docs)

# You can turn them back into a list
col_list <- as.list(col)

# Or you can turn them into a sparse binary matrix
sbm <- as.matrix(col)
# }