as.data.frame.dist {ProcMod} | R Documentation |
Converts a dist
object to a data.frame
object.
Description
The created data.frame
has a attribute is.dist
set to
the logical value TRUE
.
Usage
## S3 method for class 'dist'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
Arguments
x |
the |
row.names |
NULL or a |
optional |
logical. If |
... |
additional arguments to be passed to or from methods. |
Author(s)
Eric Coissac
Christelle Gonindard-Melodelima
Examples
data(bacteria)
bacteria_rel_freq <- sweep(bacteria,
1,
rowSums(bacteria),
"/")
bacteria_hellinger <- sqrt(bacteria_rel_freq)
bacteria_dist <- dist(bacteria_hellinger)
bdf <- as.data.frame(bacteria_dist)
[Package ProcMod version 1.0.8 Index]