EcoGenetics (version 1.2.1-4)

misc.parse.filter: Filter a raster using a conditional expression and values in a conditional vector

Description

Filter a raster using a conditional expression and values in a conditional vector

Usage

misc.parse.filter(data, expr, filter, byrow = TRUE)

Arguments

data

raster data

expr

logical expression to apply a a character string. Must have the argument "filter" and the form "filter < 3", "filter == 3" || filter< 4"

filter

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].

byrow

filter the rows? default FALSE (filter the columns)