local_block_network: Build one local generic block-model network directly

View source: R/inference.R

local_block_networkR Documentation

Build one local generic block-model network directly

Description

Build one local generic block-model network directly

Usage

local_block_network(
  rows,
  columns,
  row_lookup,
  column_lookup,
  theta,
  row_group = "rows",
  column_group = "columns",
  species_col = "species",
  guild_col = "guild",
  cell_id = NA_integer_
)

Arguments

rows, columns

Species names in each network group.

row_lookup

Data frame mapping species in the matrix rows to blocks.

column_lookup

Data frame mapping species in the matrix columns to blocks.

theta

Guild-by-guild probability matrix.

row_group

Name of the assemblage group placed in matrix rows.

column_group

Name of the assemblage group placed in matrix columns.

species_col

Species column in lookup tables.

guild_col

Guild column in lookup tables.

cell_id

Optional raster cell identifier.

Value

A numeric probability matrix with species row and column names.


metaweave documentation built on Nov. 3, 2026, 9:06 a.m.