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

gh_to_spdf fails with duplicate gh in input [OLD #11] #8

Closed
MichaelChirico opened this issue Sep 30, 2019 · 0 comments
Closed

gh_to_spdf fails with duplicate gh in input [OLD #11] #8

MichaelChirico opened this issue Sep 30, 2019 · 0 comments

Comments

@MichaelChirico
Copy link
Owner

DF = data.frame(gh = c('0', '0'))
gh_to_spdf(DF)
Error in sp::SpatialPolygonsDataFrame(gh_to_sp(gh_df[[idx]]), data = gh_df,  : 
  Object length mismatch:
     gh_to_sp(gh_df[[idx]]) has 1 Polygons objects, but gh_df has 2 rows
In addition: Warning message:
In gh_to_sp(gh_df[[idx]]) :
 Error in sp::SpatialPolygonsDataFrame(gh_to_sp(gh_df[[idx]]), data = gh_df,  : 
  Object length mismatch:
     gh_to_sp(gh_df[[idx]]) has 1 Polygons objects, but gh_df has 2 rows 

MichaelChirico closed this in 4eecd94 on 16 Aug

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