splitA {popbio} | R Documentation |
Splits a projection matrix into transition and fertility matrices where
A = T + F
.
splitA(A, r = 1, c = -1)
A |
a projection matrix |
r |
rows containing fertilities, default is first row |
c |
columns containing fertilities, default is all columns except first |
see section 5.1 in Caswell (2001)
A list with T and F matrices
By default, the fertility matrix will include elements in the first row (except first element). In a prebreeding census, it may be possible to have matrix elements that include both fertility and transition rates and therefore this function will not work.
Chris Stubben
Caswell, H. 2001. Matrix population models: construction, analysis, and interpretation, Second edition. Sinauer, Sunderland, Massachusetts, USA.
functions like generation.time
and
net.reproductive.rate
use
splitA
internally to split the matrix
data(whale) splitA(whale) # teasel -fertilitiles in last column data(teasel) splitA(teasel, r=1:6, c=6) # hudsonia - fertilities in first two columns data(hudsonia) splitA(hudsonia[[1]], r=1:2) # survival curves x<-sapply(hudsonia, function(x) colSums(splitA(x, r=1:2)$T)) matplot2(t(x), legend="bottomright", ylab="Survival", main="Hudsonia survival curves")