lapply_pair: lapply function to apply functions in a pair-wise manner...

Description Usage Arguments Value

View source: R/helper_functions.R

Description

lapply function to apply functions in a pair-wise manner between all distinct elements of a list

Usage

1
lapply_pair(x, skip_self = TRUE, f, ...)

Arguments

x

list

skip_self

logical indicating on whether function should be applied to the same element of the list, may be set to FALSE for symmetry reasons

f

the function to be applied between each pair of elements of the list. Function needs to take two arguments: i and j.

Value

list object with the results


fossbert/binilib documentation built on April 23, 2021, 10:31 p.m.