Description Usage Arguments Details Value
Compute classes
1 2 3 4 5 6 7 8 9 | compute_classes(
size,
group_var,
var,
class_method = "quantile",
nb_class = 9,
na.rm = FALSE,
replace_min_by_one = FALSE
)
|
size |
data.frame containing species and length. |
group_var |
variable to group the data. E.g. species. |
var |
variable containing the values to class. |
class_method |
character percentile or quantile. Default to percentile. |
nb_class |
integer number of size class to create. Default to 9. |
na.rm |
logical. Should the NAs be removed ? |
replace_min_by_one |
logical. In the first class, replace low bound by 1. |
The replace_min_by_one option is to reflect the choice made by Bonnafé et al. to replace the low bound of the first class (= lowest value) by one. It leads to slighty different results (env. 0.6% of the links).
blabla
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.