Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

diffCombin

Compute matrix of differences for all pairwise combinations of numeric vector


Description

diffCombin returns matrix of differences (eg resulting from subsititution) for all pairwise combinations of numeric vector 'x'.

Usage

diffCombin(x, diagAsNA = FALSE, prefix = TRUE, silent = FALSE, callFrom = NULL)

Arguments

x

numeric vector to compute differences for all combinations

diagAsNA

(logical) return all self-self combinations as NA (otherwise 0)

prefix

(logical) if TRUE, dimnames of output will specify orientation (prefix='from.' and 'to.')

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

numeric matrix of all pairwise differences

See Also

diff for simple differences

Examples

diffCombin(c(10,11.1,13.3,16.6))

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.