Method to trim and adjust objects by applying thresholds, minimum frequencies etc. It can be applied to context, features, context, partition and partition_bundle objects.

trim(object, ...)

# S4 method for TermDocumentMatrix
trim(
  object,
  termsToKeep = NULL,
  termsToDrop = NULL,
  docsToKeep = NULL,
  docsToDrop = NULL,
  verbose = TRUE
)

# S4 method for DocumentTermMatrix
trim(object, ...)

punctuation

Arguments

object

the object to be trimmed

...

further arguments

termsToKeep

...

termsToDrop

...

docsToKeep

...

docsToDrop

...

verbose

logical

Format

An object of class character of length 13.

Author

Andreas Blaette