countQuakes {geostats}R 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)

[Package geostats version 1.6 Index]