| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/dist_long.R |
| 3 |
\name{dist_long} |
| 4 |
\alias{dist_long} |
| 5 |
\title{Turns a dist object to a "long" table} |
| 6 |
\usage{ |
| 7 |
dist_long(d, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{d}{a distance object} |
| 11 |
|
| 12 |
\item{...}{not used} |
| 13 |
} |
| 14 |
\value{ |
| 15 |
A data.frame with two columns of rows and column names of the dist object |
| 16 |
and a third column (distance) with the distance between the two. |
| 17 |
} |
| 18 |
\description{ |
| 19 |
Turns a dist object from a "wide" to a "long" table |
| 20 |
} |
| 21 |
\examples{ |
| 22 |
data(iris) |
| 23 |
iris[2:6, -5] \%>\% |
| 24 |
dist() \%>\% |
| 25 |
data.matrix() |
| 26 |
iris[2:6, -5] \%>\% |
| 27 |
dist() \%>\% |
| 28 |
as.vector() |
| 29 |
iris[2:6, -5] \%>\% |
| 30 |
dist() \%>\% |
| 31 |
dist_long() |
| 32 |
# This can later be used to making a network plot based on the distances. |
| 33 |
} |