eq_create_label: Function to create popup text to leaflet map

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function receives a dataframe and return an array of char class containing a string in a HTML format with informations from three columns.

Usage

1

Arguments

data

Dataframe with earthquake data

Value

column with HTML formatted data

Examples

1
2
3
4
5
6
7
8
## Not run: 
readr::read_delim("earthquakes.txt", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY %in% c("CHINA", "USA") & lubridate::year(DATE) >= 2000) %>%
mutate(popup_text = eq_create_label(.)) %>%
eq_map()

## End(Not run)

danielfsilva88/quakeTools documentation built on Sept. 13, 2020, 12:13 a.m.