asMatrixMDT: Convert mtable data.table to matrix

Description Usage Arguments Value

Description

Convert mtable data.table to matrix

Usage

1
2
3
4
asMatrixMDT(x, fill = NA, fun.aggregate = NULL, ...)

## S4 method for signature 'MDT'
asMatrixMDT(x, fill = NA, fun.aggregate = NULL, ...)

Arguments

x

MDT object.

fill

Value to fill missing cells with. If fun.aggregate is present, takes the value by applying the function on 0-length vector.

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.

...

Any other arguments that maybe passed to the aggregating function.

Value

Mutation matrix


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