matric | R Documentation |
Metric Wrapper
matric(x, fun, ...)
x |
[numeric()][matrix()] of two columns |
fun |
[function()] taking two [numeric()][vector()] arguments and returning one scalar [numeric()] value |
... |
additional arguments to pass to |
[numeric()] scalar
x <- rnorm(100, 0, 1)
x1 <- matrix(c(x, x), ncol = 2)
matric(x1, mase)
x2 <- rbind(x1, matrix(c(NA_real_, NA_real_), ncol = 2))
matric(x2, mase)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.