relative: Relative abundance calculation

View source: R/basics_utilities.R

relativeR Documentation

Relative abundance calculation

Description

this function returns the relative proportion of each element based on a vector or dataframe.

Usage

relative(df)

Arguments

df

a dataframe or a vector of numeric values.

Details

This function was designed to perform faster than df/colSums(df) to be used in a bootstrap contest into Renkonen function.

Author(s)

Wilson Frantine-Silva <wilsonfratine@gmail.com>

Examples

df <- simulate_data(5,10)
head(df)
df.rel <- relative(df)
head(df.rel)

wilsonfrantine/R4eco documentation built on Jan. 30, 2024, 4:55 p.m.