#' bla
#'
#' @export mPattern
mPattern <- function(x){
TemporalAvg <- raster::mean(x)
SpatioTemporalAvg <- mean(TemporalAvg[]) #SpatioTemporalAvg is mtotal
mpattern <- TemporalAvg - SpatioTemporalAvg
return(mpattern)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.