A set of pre-defined functions for sample_statistics
.
Source: R/analysis-functions.R
default_stats.Rd
A set of pre-defined functions for sample_statistics
.
Examples
default_stats()
#> $sum
#> ~sum(.x, na.rm = TRUE)
#> <environment: 0x5575f0687938>
#>
#> $count
#> function (x) .Primitive("length")
#>
#> $shannon
#> ~vegan::diversity(.x, index = "shannon")
#> <environment: 0x5575f0687938>
#>
#> $simpson
#> ~vegan::diversity(.x, index = "simpson")
#> <environment: 0x5575f0687938>
#>
#> $invsimpson
#> ~vegan::diversity(.x, index = "invsimpson")
#> <environment: 0x5575f0687938>
#>
#> $describe
#> ~tibble::as_tibble(psych::describe(.x))
#> <environment: 0x5575f0687938>
#>