descrTaxon {MorphoTools2}R Documentation

Descriptive Statistics

Description

These functions calculate the descriptive statistics of each character in the whole dataset, each taxon and each population.

Usage

descrTaxon(object, format = NULL, decimalPlaces = 3)

descrPopulation(object, format = NULL, decimalPlaces = 3)

descrAll(object, format = NULL, decimalPlaces = 3)

Arguments

object

an object of class morphodata.

format

form to which will be formatted descriptive characters. See Details.

decimalPlaces

the number of a digit to the right of a decimal point.

Details

The following statistics are computed: number of observations, mean, standard deviation, and the percentiles: 0% (minimum), 5%, 25% (lower quartile), 50% (median), 75% (upper quartile), 95% and 100% (maximum).

The format argument brings a handy way how to receive only what is wanted and in format what is desired. Otherways, if format remains NULL, output table contains all calculated descriptors. The format argument is a single string, where keywords will be replaced by particular values.

Keywords: "$MEAN" = mean; "$SD" = standard deviation; "$MIN" = minimum; "$5%" = 5th percentile; "$25%" = 25th percentile (lower quartile); "$MEDIAN" = median (50th percentile); "$75%" = 75th percentile (upper quartile); "$95%" = 95th percentile; "$MAX" = maximum.

Value

A data.frame with calculated statistical descriptors.

Examples

data(centaurea, decimalPlaces = 3)

descrTaxon(centaurea)

descrTaxon(centaurea, format = "($MEAN ± $SD)")

descrPopulation(centaurea, format = "$MEAN ($MIN - $MAX)")

descrAll(centaurea, format = "$MEAN ± $SD ($5% - $95%)")

[Package MorphoTools2 version 1.0.1.1 Index]