comply: Apply a Function to All Combinations in One or between a Pair...

Description Usage Arguments Value See Also

View source: R/comply.R

Description

Apply a Function to All Combinations in One or between a Pair of Vectors

Usage

1
comply(x, y = NULL, FUN = jaccard)

Arguments

x

a vector or a list of vectors

y

a vector or a list of vectors. If y is NULL, y will be set to x, such that if x is a list, the function FUN will be applied to all pairs of vectors in the list. Default: NULL

FUN

the function to apply to all pairs of x and y. Default: jaccard

Value

a matrix of resulting values after applying FUN to all pairs of x and y (or the one pair if x and y are both atomic vectors). The number of columns and the number of rows will correspond to the lengths of x and y respectively.

See Also

setNames


jlaffy/scrabble documentation built on Nov. 16, 2019, 7:56 a.m.