EBVstats: EBV Stats

Description Usage Arguments Value Author(s) Examples

Description

This function is a wrapper of cellStats used to compute statistics of essential biodiversity variables.

Usage

1
2

Arguments

ccp

RasterStack or NULL. If NULL then NULL is returned.

stats

character. vector of stats defined in cellStats. If missing then six summary statistics, including 'mean', 'sd', 'min', 'max', are computed.

...

Additional arguments in cellStats

Value

tibble.

Author(s)

Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [aut], Maria C. Londono [aut]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Warnings from GDAL/PROJ are suppressed.

## Brick with structural Essential Biodiversity Variables covering the
## extent of a location in the northern Amazon basin (Colombia):

path. <- system.file('amazon.grd',package = 'ecochange')
amazon <- suppressWarnings(brick(path.))

## Tree-cover layers in the 'amazon' brick are both formatted and
## deforested:

suppressWarnings(
def <- echanges(amazon, eco = 'TC',
                change = 'lossyear',
                eco_range = c(1,80),
                get_unaffected = TRUE,
                binary_output = FALSE,
                mc.cores = 2)
)

## Deforestation Statistics:

defstats <- suppressWarnings(EBVstats(def))

## barplot method:

barplot(defstats)

ecochange documentation built on Sept. 8, 2021, 5:09 p.m.