meta_add_total {metalite}R Documentation

Add duplicate data to enable a total group

Description

Add duplicate data to enable a total group

Usage

meta_add_total(meta, total = "Total")

Arguments

meta

A metalite object.

total

A character value of total group name.

Value

A metadata object with a total group added.

Examples

x <- meta_add_total(meta_example())
# A `Total` group is added
table(x$data_population$TRTA)

[Package metalite version 0.1.3 Index]