Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Mixing matrix for edge attribute

Open
#53 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
data

Research direction

Start by locating the implementation and tests for mixingmatrix() and reviewing how it currently counts ties. The issue proposes optional edge_attr and fun arguments while preserving the default tie-count behavior; done would include the requested valued-tie summaries and coverage for the default and custom aggregation cases.

Written by the indexing model from the issue text.

Description

enhancement

In the context of data with "weights" and/or ERGMs for valued ties it would be nice to be able do use mixingmatrix() to get some summaries of the tie values instead of tie counts. For example:

  • optional edge_attr argument expecting the name of edge attribute to be summarised, defaults to NULL, i.e. count ties.
  • optional argument fun expecting a function aggregating the tie values, defaults to sum

leading to expressions such as:

mixingmatrix(net, attrname = "vertex attribute", edge_attr = "weight")
mixingmatrix(net, attrname = "vertex attribute", edge_attr = "weight", fun = prod)

Thoughts? Opinions? @krivit @CarterButts ?

Dominant language
R
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statnet/network

All issues in statnet/network

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.