Learn R Programming

rshift (version 3.1.2)

absolute_to_percentage: 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)

Value

The `data` dataframe with an added 'percentage' column.

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.