Skip to content

Commit

Permalink
Edits: fix errors in mcsim
Browse files Browse the repository at this point in the history
  • Loading branch information
aterui committed Oct 17, 2020
1 parent d8ff5cf commit 5a85713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/function_mcsim.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ mcsim <- function(n_species = 5,

gamma_div <- df_dyn %>%
dplyr::group_by(.data$timestep) %>%
dplyr::summarise(gamma_t = n_distinct(.data$species[.data$abundance > 0])) %>%
dplyr::pull(gamma_t) %>%
dplyr::summarise(gamma_t = dplyr::n_distinct(.data$species[.data$abundance > 0])) %>%
dplyr::pull(.data$gamma_t) %>%
mean()

beta_div <- gamma_div - alpha_div
Expand Down
2 changes: 1 addition & 1 deletion buildpackage.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ usethis::use_roxygen_md()
usethis::use_package_doc()
devtools::document()
devtools::load_all()
#devtools::check()
devtools::check()

0 comments on commit 5a85713

Please sign in to comment.