R/package.R

Defines functions ee_functions weight_functions

Documented in ee_functions weight_functions

#' Weight Function Lookup
#' @return data.frame
#' @export

weight_functions = function(){
  data.frame(collapse = .FAST_STAT_FUN, base = substring(.FAST_STAT_FUN, 2))
}

#' exactextractr Function Lookup
#' @return  data.frame
#' @export

ee_functions = function(){
  c("min", "max", "count", "sum", 
    "mean", "median", "quantile", "mode", 
    "majority", "minority", "variety", "variance", 
    "stdev", "coefficient_of_variation", "weighted_mean", 
    'weighted_sum', 'frac', 'weighted_frac')
}

#' @importFrom jsonlite toJSON
#' @importFrom collapse collap
#' @importFrom methods formalArgs
#' @importFrom collapse .FAST_STAT_FUN collap
#' @importFrom terra rast xyFromCell extract crop project vect crs rasterize nlyr sources ext
#' @importFrom exactextractr exact_extract
#' @importFrom data.table rbindlist data.table
#' @importFrom dplyr mutate filter `%>%` left_join distinct select
#' @importFrom stats as.formula complete.cases
#' @importFrom santoku chop_equally
#' @importFrom tidyr pivot_longer separate
NULL
mikejohnson51/zonal documentation built on Aug. 19, 2024, 12:56 p.m.