intervals: Calculate fire intervals from a 'composite'

Description Usage Arguments Value See Also Examples

View source: R/intervals.R

Description

Calculate fire intervals from a composite

Usage

1
intervals(comp, densfun = "weibull")

Arguments

comp

A composite instance, usually output from composite(). Should contain only one series.

densfun

String giving desired distribution to fit. Either "weibull" or "lognormal". Default is "weibull".

Value

An intervals object. intervals have components:

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(pgm)
interv <- intervals(composite(pgm))
print(interv)

mean(interv) # Mean interval

# Now fit log-normal distribution instead of Weibull.
intervals(composite(pgm), densfun = "lognormal")
## Not run: 
# Boxplot of fire interval distribution.
boxplot(intervals(composite(pgm))$intervals)

## End(Not run)

burnr documentation built on March 10, 2021, 5:07 p.m.