AddDimension: Add Dimension to a Molten Data Frame

Description Usage Arguments Value Author(s) References Examples

View source: R/all_functions_v8.R

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

1

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

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

ocbe-uio/CellMigRation documentation built on Dec. 26, 2021, 10:19 p.m.