Dear All,
I am trying to complete the biogeography tutorial. However, I get an error when trying to create the relative rate matrix Q_DEC (page 11 on the tutorial) from the extirpation rates and dispersal rate matrices.
Following exactly the tutorial, I get the following error:
Q_DEC := fnDECRateMatrix(dispersalRates=dr, extirpationRates=er)
Error: Argument or label mismatch for function call 'fnDECRateMatrix' with arguments ( Probability[][]<deterministic> 'dispersalRates',
RealPos[][]<deterministic> 'extirpationRates' ).
Correct usage is:
fnDECRateMatrix (RealPos[][]<any> dispersalRates,
RealPos[][]<any> extirpationRates,
Simplex<any> rangeSize,
String<any> nullRange {valid options: "CondSurv"|"Exclude"|"Include"},
Natural<any> maxRangeSize)
I am not sure what triggers the error, but by checking the data type of the matrices "dr" and "er", I realised that type(dr) is not assigned as RealPos.
> type(er)
RealPos[][]
> type(dr)
Probability[][]
Do you have any idea how to fix the code in order to be able to complete the tutorial?
Another less important comment:
On page 10, when executing the following command:
> state_desc = dat_range_n.getStateDescriptions()
Error: No function named 'getStateDescriptions'
Best wishes,
Marco