as_cohesion_matrix {pald} | R Documentation |
Coerce a matrix to a cohesion matrix object
Description
as_cohesion_matrix()
converts an existing matrix into an object of class
cohesion_matrix
.
Usage
as_cohesion_matrix(c)
Arguments
c |
A matrix of cohesion values (see |
Value
Object of class cohesion_matrix
Examples
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)
[Package pald version 0.0.4 Index]