Description Usage Arguments Value Examples
Take a numerical matrix and return a matrix produced only from the percentage of variance explained
1 | reduce_percentage(mat, p = 0.9)
|
mat |
A numeric matrix or a data frame coercible into a numeric matrix |
p |
Numeric value such that 0 < p <= 1. Defaults to .9 |
A matrix or an error if the inputs are illogical
1 2 3 4 5 6 7 8 | # Uses matrix made from the Linux Penguin: Attribution: Larry Ewing <lewing@isc.tamu.edu>
## Not run:
image(noisymatrix, col=gray.colors(65536))
cleanmatrix<-reduce_percentage(noisymatrix,.988)
image(cleanmatrix, col=gray.colors(65536))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.