knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(dplyr) library(ggplot2) library(sf) library(leaflet) library(tmap) library(clientapp)
# devtools::load_all() data("database", package = "clientapp") data("fra_sf", package = "clientapp")
Join client and tickets tables
ticket_complete <- database$tickets %>% left_join(database$clients, by = "num_client")
ticket_complete %>% mutate(state_reduce = case_when( grepl("Attente", state) ~ "Awaiting", state == "Terminé" ~ "Done", TRUE ~ "Proceeding" )) %>% count(state_reduce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.