nmfApply provides exteneded
apply-like functionality for objects of class
NMF. It enables to easily apply a function over
different margins of NMF models.nmfApply(X, MARGIN, FUN, ..., simplify = TRUE,
USE.NAMES = TRUE)basis
and coef methods, e.g. an NMF model.FUN is
applied. See section Details for a list of
possible values.FUNMARGIN=3,
that indicates if sapply should try to simplify
result if possible. Since this argument follows
MARGIN=3, that indicates if sapply should
use the names of the basis components to name the results
if present. Since this argument follows FUN is applied via a call to
apply or sapply according to
the value of argument MARGIN as follows:[object Object],[object Object],[object Object],[object Object],[object Object]