## S3 method for class 'numeric':
FilteringTransformation(data, threshold)## S3 method for class 'matrix':
FilteringTransformation(data, threshold)
## S3 method for class 'data.frame':
FilteringTransformation(data, threshold)
## S3 method for class 'array':
FilteringTransformation(data, threshold)
## S3 method for class 'RasterLayer':
FilteringTransformation(data, threshold)
## S3 method for class 'RasterStack':
FilteringTransformation(data, threshold)
matrix, a data.frame, a RasterLayer or a RasterStack containing the data to be converteddata with the values of data if suprerior to threshold and 0 if not.matrix/data.frame with several columns or a RasterStack with several layers and the threshold is a single numeric value, the same threshold will be applied to all columns (resp. layers).helpxx <- rnorm(50,10)
yy <- FilteringTransformation(xx, 10)
cbind(xx,yy)Run the code above in your browser using DataLab