Skip to content

Asa12138/ecode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecode

R-CMD-check

ecode, a novel package for modelling ecological populations and communities using ordinary differential equation systems, designed with a user-friendly framework.

By following a three-cycle procedure, users can easily construct ecological models and explore their behaviors through a wide range of graphical, analytical, and numerical techniques.

The package incorporates advanced techniques such as grid search methods and simulated annealing algorithms, enabling users to iteratively refine their models and achieve accurate predictions.

Notably, ecode minimises external dependencies, ensuring robustness and reducing the risk of package failure caused by updates in dependencies.

Citation

To cite ecode in publications use:

Haoran Wu, ecode: An R package to investigate community dynamics in ordinary differential equation systems, Ecological Modelling, 2024, https://doi.org/10.1016/j.ecolmodel.2024.110676.

Installation

You can install the released version of ecode from CRAN with:

install.packages("ecode")

You can install the development version of ecode from GitHub with:

# install.packages("devtools")
devtools::install_github("HaoranPopEvo/ecode")

Test code:

##Example1: Lotka-Volterra competition model
library(ecode)
eq1 <- function(x, y, r1 = 4, a11 = 1, a12 = 2) (r1 - a11 * x - a12 * y) * x
eq2 <- function(x, y, r2 = 1, a21 = 2, a22 = 1) (r2 - a21 * x - a22 * y) * y
x <- eode(dxdt = eq1, dydt = eq2)
x
plot(x)

Please go to https://bookdown.org/Asa12138/ecode_book/ for the full vignette.

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 100.0%