View source: R/temporal_metrics_sds.R
temporal_metrics_sds | R Documentation |
Calculates a temporal values for a user defined time period and user defined function. Example function included in the documentation.
temporal_metrics_sds( sds_choose, time_length, last_year, eval_funct, polygon, disturbance_year, parent_folder )
sds_choose |
this is a spatrasterdataset where each spat raster is stacked annually |
time_length |
what is the time length to calculate over ? |
last_year |
last year of the dataset to calculate last metric to go by |
eval_funct |
functions to evaluate for temporal metrics |
polygon |
region to clip spat raster dataset by |
disturbance_year |
optional argument to state what you would like to calculate by |
parent_folder |
a folder that designates where to store the files |
metrics
## Not run: A an examples of the function summary input by the user funSummary <- function(x){ c( median = median(x,na.rm=TRUE), IQR = IQR(x,na.rm=TRUE), slope = foster::theilSen(x) ) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.