series_stats {burnr} | R Documentation |
Generate series-level descriptive statistics for fhx
object
Description
Generate series-level descriptive statistics for fhx
object
Usage
series_stats(
x,
func_list = list(first = first_year, last = last_year, years = count_year_span,
inner_type = inner_type, outer_type = outer_type, number_scars = count_scar,
number_injuries = count_injury, recording_years = count_recording, mean_interval =
series_mean_interval)
)
Arguments
x |
An |
func_list |
A list of named functions that will be run on each series
in the |
Value
A data.frame
containing series-level statistics.
See Also
-
fhx()
creates anfhx
object. -
as_fhx()
casts data frame into anfhx
object. -
first_year()
gets earliest year in anfhx
object. -
last_year()
gets latest year in anfhx
object. -
count_year_span()
counts the year span of anfhx
object. -
inner_type()
gets "rec_type" for inner event of anfhx
object. -
outer_type()
get "rec_type" for outside event of anfhx
object. -
count_scar()
counts scars in anfhx
object. -
count_injury()
counts injuries in anfhx
object. -
count_recording()
counts recording years infhx
object. -
series_mean_interval()
quickly estimates mean fire-interval offhx
object. -
sample_depth()
gets sample depth of anfhx
object. -
summary.fhx()
brief summary of anfhx
object. -
composite()
create a firecomposite
from anfhx
object. -
intervals()
get fireintervals
analysis fromcomposite
. -
sea()
superposed epoch analysis.
Examples
data(lgr2)
series_stats(lgr2)
# You can create your own list of statistics to output. You can also create
# your own functions:
flist <- list(
n = count_year_span,
xbar_interval = function(x) mean_interval(x, injury_event = TRUE)
)
sstats <- series_stats(lgr2)
head(sstats)