Print a contactmatrix_list
Usage
# S3 method for class 'contactmatrix_list'
print(x, ...)
Examples
cm1 <- new_contactmatrix(
from = c("[0,5)", "[5,10)", "[5,10)"),
to = c("[0,5)", "[10,15)", "[15,20)"),
value = c(0.32 , 0.46 , 0.72 )
)
cm2 <- new_contactmatrix(
from = c("[5,10)", "[0,5)", "[5,10)"),
to = c("[15,20)", "[10,15)", "[10,15)"),
value = c(0.27 , 0.09 , 0.32 )
)
cml <- new_contactmatrix_list(cm1, cm2)
print(cml)
#>
#> ── Contact matrix list with 2 elements. ────────────────────────────────────────
#> Each element has the following structure:
#>
#> ── Contact matrix ──
#>
#> ── Groupings
#> [1] "[0,5)" "[10,15)" "[15,20)" "[5,10)"
#>
#> ── Contact rates
#> _to
#> _from [0,5) [10,15) [15,20) [5,10)
#> [0,5) 0.32 0.00 0.00 0
#> [10,15) 0.00 0.00 0.00 0
#> [15,20) 0.00 0.00 0.00 0
#> [5,10) 0.00 0.46 0.72 0