ExpandMultiBlock: ExpandMultiBlock Splits data into several blocks, allowing...

View source: R/ExpandMultiBlock.R

ExpandMultiBlockR Documentation

ExpandMultiBlock Splits data into several blocks, allowing variables to appear on more than one block at the same time.

Description

ExpandMultiBlock Splits data into several blocks, allowing variables to appear on more than one block at the same time.

Usage

ExpandMultiBlock(data = NULL, metadata = NULL, minblock = 0, loquace = TRUE)

Arguments

data

A data.frame or a matrix. Samples are in rows and variables in columns.

metadata

A 2-column data.frame detailing how columns in data must be propagated. Entries in the first column must match the row names in data (variable names). The second column details the new blocks.

minblock

The minimal number of variables that need to be contained in a block in order to be kept.

loquace

To display warning

Value

The MultiBlock.

Examples

data(mouse_ds)
lipidsMB <- ExpandMB(data = lipids, metadata = metadata_lipids,
  minblock = 0, loquace = FALSE)

f-puig/R.ComDim documentation built on Feb. 20, 2024, 6:49 a.m.