AddDimension {cellmigRation}R Documentation

Add Dimension to a Molten Data Frame

Description

Creates a new (molten) data matrix where all elements of y are added to each row of x. Each row in x is recycled for each element in y. Elements in y are added as the first column in the returned matrix.

Usage

AddDimension(x, y)

Arguments

x

a matrix or data.frame with at least 1 row and 1 column.

y

a vector with elements that will be added to x

Value

a matrix with an extra column as compared to x

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/cellmigration/

Examples

cellmigRation:::AddDimension(
    x = cbind(seq(1,4,by=1), seq(4,1,by=-1)),
    y = c(9, 7))


[Package cellmigRation version 1.0.0 Index]