AddDimension {cellmigRation} | R Documentation |
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.
AddDimension(x, y)
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 |
a matrix with an extra column as compared to x
Damiano Fantini, damiano.fantini@gmail.com
https://www.data-pulse.com/dev_site/cellmigration/
cellmigRation:::AddDimension( x = cbind(seq(1,4,by=1), seq(4,1,by=-1)), y = c(9, 7))