get_weights: Get weights

View source: R/utils.R

get_weightsR Documentation

Get weights

Description

Computes row weights and column weights

Usage

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

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

laurenhsu1/corral documentation built on Feb. 19, 2023, 10:37 p.m.