You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Function to load raw flood risk data and tidy up the variables ---------------------------
51
+
get_flood_risk<-function(raw_data_filename) {
52
+
read_sf(raw_data_filename) %>%
51
53
rename(flood_risk=risk_band) %>%
52
54
filter(st_geometry_type(geometry) !="POINT") %>% # Just in case there is any point data, remove it as this will show up as a marker pin on the map which will be confusing. The previous version of this dataset had 6 within Trafford.
53
55
select(object_id=objectid, flood_risk, geometry)
54
-
55
-
56
-
# write data ---------------------------
57
-
file.remove("trafford_flood_risk.geojson") # first remove the previous file
0 commit comments