Convert the underlying data of a disto object to a dataframe in long format (3 columns: item1, item2, distance). This might be a costly operation and should be used with caution.

# S3 method for disto
as.data.frame(x, ...)

Arguments

x

object of class disto

...

arguments for tidy

Value

a dataframe in long format

Examples

temp <- stats::dist(iris[,1:4]) dio <- disto(objectname = "temp")
#> Error: Unable to find the object in the specified environment.
dio
#> Error in eval(expr, envir, enclos): object 'dio' not found
#> Error in as.data.frame(dio): object 'dio' not found