clquezada/tRophicPosition

Error in parametricTP() when using only 1 baseline data

clquezada opened this issue · 1 comments

Example of error:

parametricTP(consumers$Anc_high, lambda = 1)
[1] "***************************************"
[1] "Parametric version of trophic position"
[1] "For consumer: Anc_high"
[1] "One baseline TP: 3.79"
[1] "Two baselines TP: "
[1] "Full model TP. At the beginning: "
Error in while (TP_p1 != TP_p2) { : argument is of length zero

Fixed in commit 8113bfb in parametricTP():

if (is.null(dNb2) | is.null(dCb2))
return(TPoneBaseline)