Description Usage Arguments Value Examples
Remove rows of a matrix that contain one or more values outside specified bounds.
1 | remove_rows_outside_bounds(matrix_to_evaluate, lower_bound, upper_bound)
|
matrix_to_evaluate |
Matrix for which the rows with values outside the bounds should be removed. |
lower_bound |
Vector with lower bounds for each column; length should be equal to the number of columns of matrix_to_evaluate. |
upper_bound |
Vector with upper bounds for each column; length should be equal to the number of columns of matrix_to_evaluate. |
matrix_to_evaluate
without the rows that contain values outside the specified bounds.
1 2 3 4 | ShadowCAT:::remove_rows_outside_bounds(matrix(-3:3), lower_bound = -2, upper_bound = 2)
ShadowCAT:::remove_rows_outside_bounds(expand.grid(list(-3:3, -2:2)),
lower_bound = c(-2, -3),
upper_bound = c(2, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.