ReCombine: ** RESERVED FOR INTERNAL USE **

View source: R/z_matrixes.R

ReCombineR Documentation

** RESERVED FOR INTERNAL USE **

Description

Combine matrix columns.

Usage

ReCombine(M, f = NULL)

Arguments

M

numeric matrix.

f

function.

Value

ReCombine returns a numeric matrix.

Examples


M <- matrix(1:40, 10, 4, dimnames = list(NULL, c("x", "x", "y", "y")))

ReCombine(M, f = c(x = "mean"))
ReCombine(M, f = c(y = "mean"))
ReCombine(M, f = list(x = "mean", y = mean))
ReCombine(M, f = list(x =  mean,  y = "mean"))
ReCombine(M, f = c(x = "merge"))
ReCombine(M, f = c(y = "merge"))
ReCombine(M, f = list(x = "merge", y = "merge"))

benja0x40/Barbouille documentation built on March 26, 2023, 11:38 p.m.