aggregateMDT: Aggregate FeatureIDs Into Higher Level IDs

Description Usage Arguments Details Value

Description

Aggregate FeatureIDs into Higher Level IDs.

Usage

1
2
3
4
5
6
aggregateMDT(x, group, fun.aggregate = function(value) mean(value, na.rm =
  TRUE), ...)

## S4 method for signature 'MDT'
aggregateMDT(x, group, fun.aggregate = function(value)
  mean(value, na.rm = TRUE), ...)

Arguments

x

MDT object.

group

data.frame specifying how to aggregate FeatureIDs. The first column is the old FeatureID, the second is the new FeatureID.

fun.aggregate

Should the data be aggregated before casting? If the formula doesn't identify single observation for each cell, then aggregation defaults to length with a message.

NEW: it is possible to provide a list of functions to fun.aggregate argument. See examples.

...

Further arguments passed on to dcast

Details

Melts mtable using melt.data.table and then recasts new mtable using dcast.

Value

MDT object with new FeatureIDs. All annotations are lost.


olivmrtn/MachineLearningGWAS documentation built on May 24, 2019, 12:52 p.m.