The weight step of finalize_row_connections() on its own, for rows
that are already folded (unordered) or directed (ordered), such as
accumulate_unit_networks()$row_connection_counts.
Usage
weight_rows(rows, ordered = FALSE, weight = NULL)
Arguments
- rows
Numeric matrix of raw per-line rows
- ordered
TRUE = keep directed n*n rows; FALSE = fold to choose(n, 2)
- weight
Weight model name ("binary", "product",
"sqrt", "log1p"), or TRUE/FALSE for the legacy binary flag
(TRUE = "binary", FALSE = "product"). NULL (default) =
"binary".
Value
Numeric matrix, same shape as rows