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

sptable<- does not propagate fields #46

Open
mdsumner opened this issue Dec 12, 2018 · 2 comments
Open

sptable<- does not propagate fields #46

mdsumner opened this issue Dec 12, 2018 · 2 comments

Comments

@mdsumner
Copy link
Owner

this should work

data("wrld_simpl", package = "maptools")
x <- wrld_simpl
library(spbabel)
library(dplyr)
x1 <- x
sptable(x1) <- spbabel::sptable(x1) %>%  dplyr::mutate(object_ = branch_)
@mdsumner
Copy link
Owner Author

hmm, tarnation - it might work if distinct(object_, .keep_all = TRUE) is run, then atleast user can duplicate object and use it to re-index the data

@mdsumner
Copy link
Owner Author

Nope, this could only work with the gibble

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