top_eq: Filter earthquakes by magnitude

Description Usage Arguments Value Examples

View source: R/clean_data.R

Description

Filter the top n_max earthquakes according to their magnitude.

Usage

1
top_eq(data, n_max = Inf, min_date = -Inf, max_date = Inf)

Arguments

data

Earthquake data

n_max

Max number of earthquakes to pick

min_date

Minimum date

max_date

Maximum date

Value

A dataframe with the filtered data

Examples

1
top_10 <- top_eq( eq_clean_data(raw_data), 10)

ElliottMess/msdr documentation built on Dec. 17, 2021, 6:27 p.m.