R/convenience-functions.R
row_standardize.Rd
Row-standardize a matrix; safe for zero row-sums.
row_standardize(C, warn = FALSE, msg = "Row standardizing connectivity matrix")
A matrix
Print message msg
if warn = TRUE
.
A warning message; used internally by geostan.
A row-standardized matrix, W (i.e., all row sums equal 1, or zero).