Identifying Stocks in Genetic Data
Overview
Provides a mixture model for clustering individuals (or sampling groups) into stocks based on their genetic profile. Here, sampling groups are individuals that are sure to come from the same stock (e.g. breeding adults or larvae). The mixture (log-)likelihood is maximised using the EM-algorithm after finding good starting values via a K-means clustering of the genetic data. Details can be found in: Foster, S. D.; Feutry, P.; Grewe, P. M.; Berry, O.; Hui, F. K. C. & Davies (2020) doi:10.1111/1755-0998.12920.
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘plot.stockBOOT.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-27
- WARNING12 OK, 1 WARNING2026-06-14
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
Show 3 earlier changesHide 3 earlier changes
- OK13 OK2026-04-29
- WARNING12 OK, 1 WARNING2026-04-28
- OK14 OK2026-03-10
Documentation
- Help pages
- 5
- Examples that run
- 40%2 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 86%
- Return-value docs
- 100%
- Help pages citing references
- 60%
Downloads
Dependencies
Installing stockR adds 3 packages (2 with compiled code, 2.0 MB of source tarballs). Heaviest: Rcpp 1.8 MB, gtools 236 KB, RColorBrewer 11 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2023-04-26
- 1.0.76Latest
- RR 4.3.0 released · 2023-04-21
- archivedRemoved from CRAN2023-04-07issues were not corrected in time
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.0.742020-03-04 · diff ↗
- 1.0.73
- RR 3.6.0 released · 2019-04-26
- 1.0.682018-06-14
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-06-14
- Total releases
- 4 / 8 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.10
- Download size
- 464 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("stockR")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.