absolute_to_percentage {rshift}R Documentation

Converts absolute abundance data to a percentage of total abundance for each site

Description

Converts absolute abundance data to a percentage of total abundance for each site

Usage

absolute_to_percentage(data, col, site)

Arguments

data

The dataframe to be used.

col

The column that change is being measured on.

site

The column containing the site of each sample.

Value

The ‘data' dataframe with an added ’percentage' column.


[Package rshift version 3.0.0 Index]