Description Usage Arguments Details Value Author(s) See Also Examples

Combine R objects by rows and columns.

1 2 |

`x, y` |
objects to combine, see Details. |

`fill` |
numeric value or |

`...` |
other argument, not used. |

`x`

and `y`

are combined in a left join manner,
meaning that all the elements in
`x`

are retained, and only non-overlapping elements in `y`

are used.
Elements of the returning object that are not part of `x`

and `y`

(outer set) are filled up with `fill`

.

If relational table in `x`

is `NULL`

,
corresponding values from same table
of `y`

are used.

`mbind2`

combines `x`

and `y`

so that inner set is
calculated as sum of corresponding elements from `x`

and `y`

(unlike in `mbind`

with a left join manner).

An object similar to the input one.

Peter Solymos <[email protected]>

`rBind`

, `cBind`

for sparse matrices in
Matrix package

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ```
x=matrix(1:4,2,2)
rownames(x) <- c("a","b")
colnames(x) <- c("A","B")
y=matrix(11:14,2,2)
rownames(y) <- c("b","c")
colnames(y) <- c("B","C")
sampx <- data.frame(x1=1:2, x2=2:1)
rownames(sampx) <- rownames(x)
sampy <- data.frame(x1=3:4, x3=10:11)
rownames(sampy) <- rownames(y)
taxay <- data.frame(x1=1:2, x2=2:1)
rownames(taxay) <- colnames(y)
taxax <- NULL
mbind(x,y)
mbind(as(x,"sparseMatrix"),as(y,"sparseMatrix"))
xy <- mbind(Mefa(x,sampx),Mefa(y,sampy,taxay))
unclass(xy)
mbind2(x,y)
mbind2(as(x,"sparseMatrix"),as(y,"sparseMatrix"))
xtab(xy) <- mbind2(x, y)
unclass(xy)
``` |

mefa4 documentation built on May 31, 2017, 4:45 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.