dot-mergeMatrices: Merge Multiple Matrices (main)

.mergeMatricesR Documentation

Merge Multiple Matrices (main)

Description

This function allows merging of multiple matrix-like objects from an initial list.

Usage

.mergeMatrices(
  inpL,
  mode = "intersect",
  useColumn = 1,
  extrRowNames = FALSE,
  na.rm = TRUE,
  argL = NULL,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

inpL

(list containing matrices or data.frames) main input (multiple matrix or data.frame objects)

mode

(character) allows choosing restricting to all common elements (mode='intersect') or union (mode='union')

useColumn

(integer, character or list) the column(s) to consider, may be 'all' to use all, integer to select specific indexes or list of indexes or colnames for cutom-selection per matrix

extrRowNames

(logical) decide whether columns with all values different (ie no replicates or max divergency) should be excluded

na.rm

(logical) suppress NAs

argL

(list of arguments)

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

This function returns a matrix containing all selected columns of the input matrices to fuse

See Also

mergeMatrixList, merge, mergeMatrices for separate entries

Examples

mat1 <- matrix(11:18, ncol=2, dimnames=list(letters[3:6],LETTERS[1:2]))

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.