-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.R
More file actions
25 lines (23 loc) · 693 Bytes
/
global.R
File metadata and controls
25 lines (23 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##################################
# Created by EPI-interactive
# 15 Sep 2021
# https://www.epi-interactive.com
##################################
library(shiny)
library(shinyjs)
library(leaflet)
library(dplyr)
library(sp)
library(sf)
g_mainData <- st_read("data/WCC_Trees/WCC_Trees.shp")
g_mainData <- st_transform(g_mainData, crs = 4326)
g_mainData <- g_mainData %>%
arrange(desc(height)) %>%
mutate(botanical = coalesce(botanical_, botanica_1)) %>%
select(OBJECTID, botanical, height, girth, address_fu) %>%
mutate(popupText = paste0(
"<b>", botanical, "</b><br>",
"Height: ", height, "m<br>",
"Girth: ", girth, "cm<br>",
address_fu
))