View source: R/pald_functions.R
as_cohesion_matrix | R Documentation |
as_cohesion_matrix()
converts an existing matrix into an object of class
cohesion_matrix
.
as_cohesion_matrix(c)
c |
A matrix of cohesion values (see |
Object of class cohesion_matrix
C <- matrix(
c(0.25, 0.125, 0.125, 0,
0.125, 0.25, 0, 0.125,
0.125, 0, 0.25, 0.125,
0, 0.125, 0.125, 0.25
), nrow = 4, byrow = TRUE)
class(C)
C <- as_cohesion_matrix(C)
class(C)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.