countQuakes: count the number of earthquakes per year

View source: R/fractals.R

countQuakesR Documentation

count the number of earthquakes per year

Description

Counts the number of earthquakes per year that fall within a certain time interval.

Usage

countQuakes(qdat, minmag, from, to)

Arguments

qdat

a data frame containing columns named mag and year.

minmag

minimum magnitude

from

first year

to

last year

Value

a table with the number of earthquakes per year

Examples

data(declustered,package='geostats')
quakesperyear <- countQuakes(declustered,minmag=5.0,from=1917,to=2016)
table(quakesperyear)

geostats documentation built on Jan. 7, 2023, 5:32 p.m.