as.data.frame.disto {disto} | R Documentation |
Convert a disto object to dataframe
Description
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.
Usage
## S3 method for class 'disto'
as.data.frame(x, ...)
Arguments
x |
object of class disto |
... |
arguments for |
Value
a dataframe in long format
Examples
temp <- stats::dist(iris[,1:4])
dio <- disto(objectname = "temp")
dio
head(as.data.frame(dio))
[Package disto version 0.2.0 Index]