| pairwise_col_diff | R Documentation |
Compute pairwise difference between matrix columns
pairwise_col_diff(x)
x |
A data matrix of size n times p. Where rows are observations and columns are features. |
A matrix of size n times (p choose 2), where each column is the difference between two of the original columns.
n = 1
p = 4
x = matrix(rep(1:p, n), nrow = n, ncol = p, byrow = TRUE)
colnames(x) = paste0("X", 1:p)
pairwise_col_diff(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.