MbetterMax: Matrix Better Max

Description Usage Arguments Details Value

View source: R/MbetterMax.R

Description

Find the element by element max of a set of matrices stored as levels of an array

Usage

1

Arguments

x

A 3 dimensional array

Details

This functions collapses the planes of a 3-dimensional array, leaving a two dimensional matrix. Each element of the 2-d matrix is the betterMax of all the values in that cell location across all planes in the array. In otherwords, it collapses xyz space into the xy plane by taking the maximum value across the z dimension for each xy coordinate, ignoring NA's.

Value

A numeric matrix whose dimensions are the same as the first two dimensions of the input array. The value in each position [a,b] is the largest value of [a,b,] in the input array. If all values stored in [a,b,] are NA, that position in the output will also contain NA.


debarros/dbTools documentation built on Sept. 18, 2020, 10:51 a.m.