eq_create_label: Generate earthquake label column

Description Usage Arguments Value Examples

View source: R/leaflet_maps.R

Description

Input a dataframe (df) and the function will output a vector with HTML column names Required columns: CLEAN_LOCATION_NAME, EQ_PRIMARY and DEATHS

Usage

1

Arguments

df

dataframe for creating annotation column

Value

Returns a vector of earthquake details

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
map2 <-load_data() %>%
  eq_clean_data() %>%
  dplyr::filter(COUNTRY == "GREECE" & lubridate::year(date) >= 2002) %>%
  dplyr::mutate(popup_text = eq_create_label(.)) %>%
  eq_map(annot_col = "popup_text")
print(map2)

## End(Not run)

lakrobinson/noaar2 documentation built on Dec. 1, 2020, 9:35 p.m.