Learn R Programming

metalite (version 0.1.4)

meta_add_total: Add duplicate data to enable a total group

Description

Add duplicate data to enable a total group

Usage

meta_add_total(meta, total = "Total")

Value

A metadata object with a total group added.

Arguments

meta

A metalite object.

total

A character value of total group name.

Examples

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

Run the code above in your browser using DataLab