powered by
Estimate the relative frequency of non-NA pixels.
relative.freq(x, na.rm = TRUE)
A vector of class numeric or an object of class rasterLayer.
Logical. Should the NA values be excluded. Default is TRUE.
A numeric element or an object of class RasterLayer.
Estimates the relative frequency of non-NA values.
mape
# NOT RUN { { x <- c(1, 1, 1, NA, NA, 1, NA) f <- relative.freq(x, na.rm=TRUE) } # }
Run the code above in your browser using DataLab