Displaying 1 result from an estimated 1 matches for "repmat1".
Did you mean:
repeat1
2004 Sep 28
2
S4 method selection based on second argument
...9;repmat' with three
calling sequences (all I have to deal with anyway):
1) B = repmat(A, m, n)
2) B = repmat(A, [m n])
3) B = repmat(A, n)
In all cases, A is the fill value, m is number of rows,
and n is number of columns.
As separate functions, the translations would roughly be:
repmat1 <- function(A, m, n) {
kronecker(matrix(1, n, m), A)
}
repmat2 <- function(A, rc) {
repmat1(A, rc[1], rc[2])
}
repmat3 <- function(A, n) {
repmat1(A, n, n)
}
Suggestions?
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)