Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rdiversity (version 1.0)

summarise: Summary function

Description

This function converts columns of an array (each representing population counts) into proportions, so that each column sums to 1.

Usage

summarise(populations, normalise = TRUE)

Arguments

populations

An S x N array whose columns are counts of individuals.

normalise

Normalise probability distribution to sum to 1 for each column rather than just along each set.

Value

Returns an array whose columns are proportions.