<div dir="ltr"> Hello sir/madam,<div><br></div><div>I have a macro-enabled excel file and wanted to import the data that this file automatically grabs everytime the macro is run. Are there any packages for macro-enabled excel?</div><div><br></div><div>I have written some codes using a leaflet package and was trying to set criteria for circle markers that if the Rainfall value is in the ranges the color of the markers would change and start blinking. Given for green 0-20mm, yellow - 20-30mm, orange- 30-50mm, red- >= 50mm.</div><div><br></div><div>Given below is the code and sample data</div><div>library(sf)</div><div>library(leaflet)</div><div><br></div><div>#Make Leaflet map with markers<br>leaflet() %>%<br>  addTiles() %>%<br>  addCircleMarkers(lat = rainfall$Latitude,<br>                   lng = rainfall$Longitude)<br><br># Add Data for rainfall<br>col_pal <- colorNumeric(palette = "viridis",<br>                        domain = rainfall$rainfall)<br>    <br>#adding content to the popups<br>#Make map with colors with markers<br>Map<- leaflet() %>%<br>  addTiles() %>%<br>  addCircles(lat = Rainfall$Latitude,<br>           lng = Rainfall$Longitude,<br>           color = col_pal(Rainfall_plots$Rainfall),<br>           radius = 2000,<br>          fillOpacity = 0.8,<br>          label =  Rainfall_plots$rainfall) %>%<br> addLegend(position = "bottomleft", pal = col_pal, values = Rainfall_plots$rainfall, title = "Rainfall Indicator")<br><br></div><div>Map</div><div>********************************************************************************************************</div><div><br></div><div>The code is correct, some ideas to set up criterias for the rainfall amount would really be appreciated. And possibly the codes as well would be really wonderful. Also attached is the sample data in csv format</div><div><br></div><div>Thanking you in advance</div><div>Sownalc</div><div><br></div></div>