Cdiff | R Documentation |
Each column is checked by all.equal
Cdiff(a, b, tolerance = sqrt(.Machine$double.eps))
a |
numerical matrix |
b |
numerical matrix |
tolerance |
parameter to |
(a-b) where equal columns are set to zero
a <- matrix(rnorm(6), 3, 2) b <- matrix(rnorm(6), 3, 2) a - b Cdiff(a, b) b[, 1] <- a[, 1] + (.Machine$double.eps)^(2/3) * b[, 1] a - b Cdiff(a, b) a[, 2] <- b[, 2] a - b Cdiff(a, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.