pair_with: Pair a sample (n) with all the other samples in the matrix m.

Description Usage Arguments Details Value

View source: R/sample_sample_plot.R

Description

This function takes an integer n and a matrix m. The goal is to generate all pairings of n with members of l (except n itself). This is done in index space (e.g., if n=1, then it would provide (1,2), (1,3), (1,4) for a 4-column matrix).

Usage

1
pair_with(n, m)

Arguments

n

The index of sample to pair everything against.

m

A matrix of samples (one column is one sample).

Details

I suspect there is a function in R to do this, but I couldn't find it quickly.

Value

A matrix of columns representing pairings to consider.


steveneschrich/CLIApet documentation built on March 2, 2021, 12:02 a.m.