deckel | R Documentation |
treshold an array from below and above
deckel(x, lower = -Inf, upper = +Inf)
x |
numeric matrix |
lower |
numeric |
upper |
numeric |
The function takes the matrix and censores the values from below (if lower param is set) or from above (if upper param is set), or from both of them. If neither lower nor upper param is set or if none of the values meet the criteria for thresholding, then function returns unmodified object.
matrix
Wolfgang Huber <wolfgang.huber@embl.de>
mat = matrix(1:40, nrow=5)
# threshold values below 5
deckel(mat, lower=5)
# threshold values above 15
deckel(mat, upper=15)
# threshold values below 5 and above 15
deckel(mat, lower=5, upper=15)
# threshold values below 0 and above 50 -> no thresholding will be done!
identical(mat, deckel(mat, lower=0, upper=50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.