The fitness package permits working with fitness landscapes in R.
The development version of fitness can be installed using the devtools package.
# install from GitHub
devtools::install_github("rrrlw/fitness")
The following models of fitness landscapes are implemented:
- NK model
- Rough Mt. Fuji model
In addition, the following functionality for generic fitness landscapes is implemented:
- Item 1
- Item 2
To contribute to fitness, you can create issues for any bugs/suggestions on the issues page. You can also fork the fitness repository and create pull requests to add features you think will be useful for users.
read_* functions to read in each type of model (or general fitness landscape?) write_* functions to write each type of model (or general fitness landscape?) method to find optimal peak, to find all peaks (same for valleys?) functions to generate NK landscapes, RMF landscapes utility functions: calculate lattice distance, list all neighbors (values or coordinates?) for given spot