bodycon

R-CMD-check

bodycon is an R package for calculating commonly used body condition indices in wildlife ecology research. In this research field, an individual’s fitness traits, like reproduction and survival, are important measures of individual performance and health. However, direct measures of fitness can be impractical to collect in the field due to financial or logistical constraints. So, in these cases, animal ecologists often rely on proxies of individual fitness, such as body condition.

One widely used approach to estimating body condition is to relate body mass to a measure of body size, but this can be calculated in a variety of ways. bodycon contains functions for a variety of methods of estimating body condition indices, including residuals from an ordinary least squares (OLS) regression, the scaled mass index (SMI) using standardised major axis (SMA) regression, and the SMI using robust SMA regression.

Installation

The released version of bodycon can be installed from CRAN with:

install.packages("bodycon")

The development version of bodycon can be installed from GitHub with:

remotes::install_github("RBGLabs/bodycon")

Getting Started

See the package vignette for an introduction to bodycon, including examples of the included body condition index methods and approaches for evaluating their suitability for your data.

Citing bodycon

If you make use of bodycon in your research, please cite:

Riley J, Kar F (2026). bodycon: Estimation of Animal Body Condition Indices. R package version 0.1.0. https://doi.org/10.5281/zenodo.23066174

You can also obtain the citation directly in R:

citation("bodycon")

Find a Bug?

Thank you for catching it! Please open an issue on GitHub and let us know about it. We will try to get to it as soon as we can.