fm.apply | R Documentation |
Apply a predefined function on rows/columns of a FlashR matrix.
The predefined function always output a vector of the same length. Thus,
the output of fm.apply
is a matrix.
fm.apply(x, margin, FUN)
x |
a FlashR matrix. |
margin |
an integer. |
FUN |
a string that indicates the name of the predefined function. |
Currently, the predefined functions include "rank"
and
a FlashR matrix.
mat <- fm.runif.matrix(100, 10) res <- fm.apply(mat, 1, "rank")