Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace rbind() with bind_sf() #516

Closed
Robinlovelace opened this issue Jul 1, 2024 · 0 comments
Closed

Replace rbind() with bind_sf() #516

Robinlovelace opened this issue Jul 1, 2024 · 0 comments

Comments

@Robinlovelace
Copy link
Contributor

rbind() is very slow with sf objects: r-spatial/sf#798

We should avoid it on large objects like here:

combined_CN_geojson = do.call(rbind, all_CN_geojson)

and here

combined_zones_tiles <- do.call(rbind, zones_tiles)

We can use bind_sf instead:

network = sf::read_sf(combined_network_file)

wangzhao0217 added a commit that referenced this issue Jul 1, 2024
Speed-up rbind with bind_sf(), close #516
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant