View source: R/sim_construct-validate.R
sim_new | R Documentation |
matric_sim
S3 class.sim_new
creates an object of class matric_sim
.
sim_new(x, row_metadata, metric_metadata)
x |
data.frame with similarity matrix. |
row_metadata |
tbl with row metadata. |
metric_metadata |
list with metric information |
matric_sim
is just a tibble
with two attributes and at least
three columns.
Columns:
id1
and id2
: integers, indicating row ids.
sim
: double, indicating similarity between the rows.
Attributes:
row_metadata
: data.frame of row annotations, with id
column.
metric_metadata
: information about the similarity metric.
This is somewhat similar to Biobase::AnnotatedDataFrame
.
Object of class matric_sim
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.