get_closest_sim: Find highest similarity value in region

Description Usage Arguments Value

View source: R/get_closest_sim.R

Description

In the rca matrix, each region (row) has a number of units (col) with the value 1. From these units, the function finds the highest value of similarity to each unit.

Usage

1
get_closest_sim(rca_mat, sim_mat)

Arguments

rca_mat

binary rca matrix with region rows, units in columns

sim_mat

similarity matrix with units on both dimensions.

Value

matrix with regions in rows, units in columns. The elements are the highest similarity-value in the region to the given unit (column).


sbpdata/compost documentation built on Nov. 5, 2019, 6:17 a.m.