powered by
This function computes and returns the distance matrix computed by co-occurence distance.
cooccur(data)
A matrix or data frame of binary/ categorical variables. The values of matrix are integer, i.e 1, 2, 3, ....
A matrix of distance from binary/ categorical variable.
This is a function to compute a co-occurence distance. It returns a matrix of distance objects , i.e n x n.
Harikumar, S., PV, S., 2015. K-medoid clustering for heterogeneous data sets. JProcedia Computer Science 70, 226-237.
# NOT RUN { set.seed(1) a <- matrix(sample(1:2, 7*3, replace = TRUE), 7, 3) cooccur(a) # }
Run the code above in your browser using DataLab