cyipt / actdev

ActDev - Active travel provision and potential in planned and proposed development sites
https://actdev.cyipt.bike
7 stars 3 forks source link

remove redundant columns in all-sites.geojson #161

Closed natesheehan closed 3 years ago

natesheehan commented 3 years ago

remove "walk_base_rating", "cycle_base_rating","drive_base_rating"

natesheehan commented 3 years ago
all_sites = subset(all_sites, select = -c(walk_base_rating,cycle_base_rating,drive_base_rating))
file.remove("data-small/all-sites.geojson")
sf::write_sf(all_sites,"data-small/all-sites.geojson")

I have used this on the main branch

Robinlovelace commented 3 years ago

select = -c(walk_base_rating,cycle_base_rating,drive_base_rating)

Nice syntax!

Robinlovelace commented 3 years ago

Job done I think, right @natesheehan . Pro tip:

git commit -am 'Close #161'

Would close this issue, give it a try!