fh_stat_extract: function to return a layer list for fh_NDVI_DF()

Description Usage Arguments Value Author(s) Examples

View source: R/fh_stat_extract.R

Description

function to return a layer list for fh_NDVI_DF()

Usage

1
fh_stat_extract(extract_results, stat, ...)

Arguments

stat

- string to specify the statistical parameter to apply i.e. "mean", "max", "min" ...

extract_result

- a nested list, length represents the number of layers from the raster extract, length of nested lists represents the number of polygons used for extraction

Value

a list with the selected statistical parameter for each poly in each layer

Author(s)

Eric Krueger

Examples

1
2
3
4
5
6
## Not run: 
test_list <- readRDS("inst/data/test_list.RDS")
test_layer_list <- fh_stat_extract(test_list, "mean", na.rm = T)
fh_NDVI_DF(test_layer_list,layernames = c(1:24),transform_ndvi = F)

## End(Not run)

EricKrg/ForestHealth documentation built on May 23, 2019, 6:08 p.m.