powered by
Counts the number of earthquakes per year that fall within a certain time interval.
countQuakes(qdat, minmag, from, to)
a table with the number of earthquakes per year
a data frame containing columns named mag and year.
mag
year
minimum magnitude
first year
last year
data(declustered,package='geostats') quakesperyear <- countQuakes(declustered,minmag=5.0,from=1917,to=2016) table(quakesperyear)
Run the code above in your browser using DataLab