aggregate.qtag.long: Aggregate/Summarise a qualifier/tag structure

Description Usage Arguments Value Examples

View source: R/qtag.R

Description

Summarises a qtag object such that one value exists for every unique qualifier combination. This is useful for summarising replicates.

Usage

1
2
3
4
5
## S3 method for class 'qtag.long'
aggregate(x, ..., force = TRUE)

## S3 method for class 'qtag.wide'
aggregate(x, ..., force = TRUE)

Arguments

x

A qtag object

...

A parameter including at least one unnamed parameter for summarising values. Additional parameters may be used for aggregating a long format.

force

Use force=FALSE to only aggregate if the object is not already summarised.

Value

A (possibly unchanged) qtag object

Examples

1
2
3
4
5
data(pocmaj)
pocmajqt <- as.qtag(pocmaj, id.vars=c("core", "depth"))
aggregate(pocmajqt)
aggregate(pocmajqt, mean)
aggregate(long(pocmajqt), mean, sd, length)

mudata documentation built on Nov. 17, 2017, 7:30 a.m.