Description Usage Arguments Details Value Author(s) Examples
View source: R/matrix_threshold.R
Returns matrix with values above or below the threshold
are replaced.
Can be used for converting to a binary matrix or for thresholding an adjacency
matrix.
1 |
matrix |
matrix |
threshold |
Integer |
minval |
Integer. Replaces values below threshold. |
maxval |
Integer. Replaces values above or equal to |
abs |
Logical. If TRUE the absolute value will be considered. |
rmna |
Logical. If TRUE NA's will be replaced with |
... |
Other parameters. |
If rm.na
is TRUE and minval
is NULL, then NA's will be replaced
with 0.
max_threshold
returns an matrix with values removed according to parameters.
Shannon M. Bell
1 2 3 4 5 |
Alabama Alaska Arizona Arkansas California
Georgia 0.9998347 0.9897012 0.9992693 0.9998995 0.9955203
Hawaii 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000
Idaho 0.9711302 0.9447686 0.9802287 0.9761620 0.9881726
Illinois 0.9946122 0.9772742 0.9975498 0.9964785 0.9981170
Indiana 0.9379024 0.9041874 0.9518965 0.9454442 0.9657722
Iowa 0.7057595 0.0000000 0.7336002 0.7203431 0.7656561
Alabama Alaska Arizona Arkansas California
Georgia 0.9998347 0.9897012 0.9992693 0.9998995 0.9955203
Hawaii 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000
Idaho 0.9711302 0.9447686 0.9802287 0.9761620 0.9881726
Illinois 0.9946122 0.9772742 0.9975498 0.9964785 0.9981170
Indiana 0.9379024 0.9041874 0.9518965 0.9454442 0.9657722
Iowa 0.7057595 0.0000000 0.7336002 0.7203431 0.7656561
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.