Learn R Programming

quanteda (version 0.99.22)

as.dist.dist: coerce a dist into a dist

Description

Internal function to guarantee that a dist remains a dist, if for some reason a user wants to coerce a dist into a dist.

Usage

# S3 method for dist
as.dist(m, diag = FALSE, upper = FALSE)

Arguments