powered by
Apply the given function to every pair in the given datalist. Function either symmetrical (i.e. fun(x,y) == fun(y,x)) or assymmetrical (i.e. fun(x,y) != fun(y,x)).
apply_symm(.datalist, .fun, ..., .diag = NA, .verbose = TRUE)apply_asymm(.datalist, .fun, ..., .diag = NA, .verbose = TRUE)
apply_asymm(.datalist, .fun, ..., .diag = NA, .verbose = TRUE)
Matrix with values M[i,j] = fun(datalist[i], datalist[j])
List with some data.frames.
Function to apply, which return basic class value.
Arguments passsed to .fun.
Either NA for NA or something else != NULL for .fun(x,x).
if TRUE then output a progress bar.
data(immdata) apply_symm(immdata$data, function(x, y) { nrow(x) + nrow(y) })
Run the code above in your browser using DataLab