Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
clquezada opened this issue Aug 7, 2017 · 1 comment
Closed

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

clquezada opened this issue Aug 7, 2017 · 1 comment
Assignees

Comments

@clquezada
Copy link
Owner

@clquezada clquezada commented Aug 7, 2017

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 clquezada self-assigned this Aug 7, 2017
@clquezada
Copy link
Owner Author

@clquezada clquezada commented Jun 27, 2018

Fixed in commit 8113bfb in parametricTP():

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

@clquezada clquezada closed this Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.