as.data.frame.disto {disto} | R Documentation |
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 class 'disto'
as.data.frame(x, ...)
x |
object of class disto |
... |
arguments for |
a dataframe in long format
temp <- stats::dist(iris[,1:4])
dio <- disto(objectname = "temp")
dio
head(as.data.frame(dio))