abicky/R_funcs — Issue #1: Easier code for repmat
Author: ramnathv
Created: 2011-12-11 17:08:35+00:00
State: open

Sorry to be posting this as an issue, but I could find no easy way to write a comment. `repmat` can be easily implemented using the `kronecker` function in `base`. Here is my implementation sans error checking.

```
repmat = function(A, m, n) {
kronecker(matrix(1, m, n), A)
}
```