eq_create_label: Function to generate HTML code used in the marker's popup of...

Description Usage Arguments Value Examples

Description

Function to generate HTML code used in the marker's popup of a leaflet map. It includes date, location, magnitude and total deaths. If any of the variables are NA, it is not displayed

Usage

1

Arguments

data

a data frame from which information is required

Value

character vector containing HTML code

Examples

1
2
3
4
5
6
7
## Not run: 
  eq_clean_data(eq_data()) %>% eq_location_clean() %>%
  dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
  dplyr::mutate(popup_text = eq_create_label(.))


## End(Not run)

abhinav-piplani/earthquakeR documentation built on May 23, 2019, 3:04 p.m.