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

as_ypr_ecotype() easy way to combine two populations #65

Open
aylapear opened this issue May 4, 2022 · 0 comments
Open

as_ypr_ecotype() easy way to combine two populations #65

aylapear opened this issue May 4, 2022 · 0 comments

Comments

@aylapear
Copy link
Member

aylapear commented May 4, 2022

Your Idea

It was clunky to set up a ecotype.

This feels like a more logical way to set up the ecotypes.

horse_lt_small <- 
    ypr_update(
    horse_lt,  
    Wa = Wa$Estimate
)

horse_lt_large <- 
  ypr_update(
    horse_lt_small,
    k2 = k2$Estimate
)

horse_lt_ecotypes <- 
  as_ypr_ecotype(
    c(horse_lt_small, horse_lt_large), 
    names = c("small", "large")
)

This is how it was done.

ecotype <- 
  ypr_ecotypes(
  Wa = Wa$Estimate,
  Wb = Wb$Estimate,
  k = k$Estimate,
  # in cm 
  Linf = Linf$Estimate,
  es = c(Es_small$Estimate, Es_big$Estimate),
  nL = nL$Estimate,
  pi = pi$Estimate
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants