remove_rows_outside_bounds: Remove rows outside bounds

Description Usage Arguments Value Examples

Description

Remove rows of a matrix that contain one or more values outside specified bounds.

Usage

1
remove_rows_outside_bounds(matrix_to_evaluate, lower_bound, upper_bound)

Arguments

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.

Value

matrix_to_evaluate without the rows that contain values outside the specified bounds.

Examples

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))

Karel-Kroeze/ShadowCAT documentation built on May 7, 2019, 12:28 p.m.