Splits a matrix population model into three constituent matrices, U (growth and survival processes), F (sexual reproduction) and C (clonal reproduction). Warning! The functionality is very basic: it assumes that sexual reproduction is located in the top row of the matrix, and that everything else is growth or survival (i.e. the U matrix). Clonality is assumed to be non-existent.
mpm_split(matA)A list of three matrices: matU,matF and matC.
matC will always contain only zeros.
Other transformation:
is_leslie_matrix(),
leslie_collapse(),
mpm_collapse(),
mpm_rearrange(),
mpm_standardize(),
name_stages(),
repro_stages(),
standard_stages()
matA <- rbind(
c(0.1, 0, 5.3, 4.2),
c(0.5, 0.2, 0.1, 0),
c(0, 0.3, 0.3, 0.1),
c(0, 0, 0.5, 0.6)
)
mpm_split(matA)
#> $matU
#> [,1] [,2] [,3] [,4]
#> [1,] 0.0 0.0 0.0 0.0
#> [2,] 0.5 0.2 0.1 0.0
#> [3,] 0.0 0.3 0.3 0.1
#> [4,] 0.0 0.0 0.5 0.6
#>
#> $matF
#> [,1] [,2] [,3] [,4]
#> [1,] 0.1 0 5.3 4.2
#> [2,] 0.0 0 0.0 0.0
#> [3,] 0.0 0 0.0 0.0
#> [4,] 0.0 0 0.0 0.0
#>
#> $matC
#> [,1] [,2] [,3] [,4]
#> [1,] 0 0 0 0
#> [2,] 0 0 0 0
#> [3,] 0 0 0 0
#> [4,] 0 0 0 0
#>