simulate_interaction_counts: Simulate an interaction-count matrix

View source: R/metrics.R

simulate_interaction_countsR Documentation

Simulate an interaction-count matrix

Description

Simulate an interaction-count matrix

Usage

simulate_interaction_counts(network, size = 100L, seed = NULL)

Arguments

network

Ecological network or nonnegative numeric matrix.

size

Nonnegative integer total number of interactions.

seed

Optional nonnegative integer seed. A supplied seed produces a repeatable draw without changing the caller's global random state.

Value

An integer matrix with the input dimensions and names. Counts sum to size when positive probability mass exists; otherwise all entries are zero.


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