clquezada / tRophicPosition

estimate trophic position using stable isotope data
16 stars 3 forks source link

Error in parametricTP() when using only 1 baseline data #69

Closed clquezada closed 6 years ago

clquezada commented 7 years ago

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

clquezada commented 6 years ago

Fixed in commit 8113bfb in parametricTP():

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