fh_NDVI_DF: function to return a formatted ndvi df

Description Usage Arguments Details Value Author(s) Examples

View source: R/fh_NDVI_DF.R

Description

function to return a formatted ndvi df

Usage

1
fh_NDVI_DF(inlist, layernames, transform_ndvi)

Arguments

inlist

- list of NDVI layer, layers list == numbers of extracted points/polygons

layernames

- vector of Layernames which are set a colnames, need to be ordered

transform_ndvi

- if TRUE the NDVI values are transfromed like: (x- 10000)/10000

Details

this function returns a formatted ndvi df (data table) inlist is the output of mean_extract() or result of a raster::extract job (if poly centroids were used) layernames is a vector with the columnnames (date stamps) of the new ndvi dt

Value

a formatted NDIV Data table, from an list of NDVI values

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.