new_contact_matrix: Create a contact_matrix object

View source: R/contact-matrix-result.R

new_contact_matrixR Documentation

Create a contact_matrix object

Description

Create a contact_matrix object

Usage

new_contact_matrix(matrix, participants, ...)

Arguments

matrix

a numeric matrix with age group dimnames

participants

a data.frame with columns age.group, participants, proportion

...

additional named elements (e.g. mean.contacts, normalisation, contacts from split_matrix())

Value

a contact_matrix object (an S3 class inheriting from list)


socialmixr documentation built on April 29, 2026, 9:07 a.m.