Filter a raster using a conditional expression and values in a conditional vector
misc.parse.filter(data, expr, filter, byrow = TRUE)
raster data
logical expression to apply a a character string. Must have the argument "filter" and the form "filter < 3", "filter == 3" || filter< 4"
vector with the values to use for filtering the data (included or excluded of the matrix). If a column or row of the data, filter is the value data[row, ], data[, col].
filter the rows? default FALSE (filter the columns)