as.data.frame.disto: Convert a disto object to dataframe

Description Usage Arguments Value Examples

View source: R/disto_methods.R

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

1
2
## S3 method for class 'disto'
as.data.frame(x, ...)

Arguments

x

object of class disto

...

arguments for tidy

Value

a dataframe in long format

Examples

1
2
3
4
temp <- stats::dist(iris[,1:4])
dio  <- disto(objectname = "temp")
dio
head(as.data.frame(dio))

disto documentation built on May 2, 2019, 4:06 p.m.