get_weights: Get weights

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Computes row weights and column weights

Usage

1
get_weights(inp_mat)

Arguments

inp_mat

matrix for which weights should be calculated (sparse or full)

Value

list of 2 elements: 'row.w' and 'col.w' contain the row and column weights respectively

Examples

1
2
mat <- matrix(sample(seq(0,20,1),100,replace = TRUE),nrow = 10)
ws <- get_weights(mat)

corral documentation built on Nov. 8, 2020, 8:25 p.m.