col_pairs_to_matrix: col_pairs_to_matrix

Description Usage Arguments Details Value Examples

View source: R/jamie-internals.R

Description

This function populates a matrix[i, j] based on the columns of a dataframe where i and j are both indices for 1 to the number of columns in x.

Usage

1

Arguments

x

A dataframe.

FUN

A function to be applied to each pair of columns in x.

...

Additional arguments to be passed to FUN.

Details

The input must be a dataframe or an error will result.

Value

A matrix[i, j] based on all pairs of columns in x.

Examples

1
2
3
4
## Not run: 
col_pairs_to_matrix(a_dataframe, NMI))

## End(Not run)

jameswgriffith/jamie documentation built on Dec. 20, 2021, 9:03 p.m.