summarise_lookup: Summarise the results of a repeated matrix lookup

View source: R/methods_matrix_lookup.R

summarise_lookupR Documentation

Summarise the results of a repeated matrix lookup

Description

This function either filters out all the array slices that are solely composed of NAs or those specified. It sets all other NAs to 0 and then takes the mean along the first dimension of a threedimensional array.

Usage

summarise_lookup(array, outlier_filter = c(0, 1), keep = NULL, group = NULL)

Arguments

array

A threedimensional array.

outlier_filter

A numeric of length 2 between [0-1] indicating quantiles of data to be used as thresholds. Data outside these thresholds are set to the nearest threshold. Setting this to c(0, 1) performs no outlier correction.

keep

A logical vector of length dim(array)[1] indicated which slices to keep. If NULL, independently filters out all-NA slices.

Value

A list of length 2 with a matrix giving mean values of array along the first dimension and the keep as used in the calculation of the means.

See Also

rep_mat_lookup


robinweide/GENOVA documentation built on March 14, 2024, 11:16 p.m.