Learn R Programming

burnr (version 0.4.0)

intervals: Constructor for S3 intervals class.

Description

Constructor for S3 intervals class.

Usage

intervals(comp, densfun = "weibull")

Arguments

comp

A composite fhx instance. Should have only one series in it.

densfun

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

Value

An intervals instance.

Examples

Run this code
# NOT RUN {
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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab