Learn R Programming

disto (version 0.2.0)

as.data.frame.disto: 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 disto
as.data.frame(x, ...)

Arguments

x

object of class disto

...

arguments for tidy

Value

a dataframe in long format

Examples

Run this code
# NOT RUN {
temp <- stats::dist(iris[,1:4])
dio  <- disto(objectname = "temp")
dio
head(as.data.frame(dio))
# }

Run the code above in your browser using DataLab