eq_create_label: This method returns a popup-text for each in the data frame...

Description Usage Arguments Value Examples

Description

This method returns a popup-text for each in the data frame with location name, magnitude and deaths.

Usage

1

Arguments

df

The data frame for the popup-texts.

Value

list of popup-texts.

Examples

1
2
3
4
5
6
7
8
## Not run: 
 f <- system.file("extdata", "signif.txt", package="earthquakes")
 a <- eq_clean_data(file = f)
 b <- dplyr::filter(a, COUNTRY == "MEXICO" && lubridate::year(DATE) >= 2000)
 c <- dplyr::mutate(b, popup_text = eq_create_label(.))
 eq_map(c, annot_col = "popup_text")

## End(Not run)

bernd-mueller/earthquakes documentation built on May 7, 2019, 8 a.m.