as.matrix.textreuse_candidates function

Convert candidates data frames to other formats

Convert candidates data frames to other formats

These S3 methods convert a textreuse_candidates object to a matrix.

## S3 method for class 'textreuse_candidates' as.matrix(x, ...)

Arguments

  • x: An object of class textreuse_candidates.
  • ...: Additional arguments.

Returns

A similarity matrix with row and column names containing document IDs.