[go: up one dir, main page]

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

st_intersection drops tibble class #448

Closed
karldw opened this issue Jul 31, 2017 · 0 comments
Closed

st_intersection drops tibble class #448

karldw opened this issue Jul 31, 2017 · 0 comments

Comments

@karldw
Copy link
Contributor
karldw commented Jul 31, 2017

The read_* functions now bring in data as a tibble (because of bfee48b). However, the reindexing in geos_op2_df means st_intersection.sf still returns an ordinary data.frame. st_sym_difference and st_difference are the same; all three depend on geos_op2_df.

library(sf)
library(tidyverse)
nc <- read_sf(system.file("shape/nc.shp", package = "sf"))
class(nc)
#> [1] "sf"         "tbl_df"     "tbl"        "data.frame"

class(st_intersection(nc, nc))
#> [1] "sf"         "data.frame"

Ref: #404

Footnote: data.table sf objects, when they get implemented, will probably also need special treatment here, since both tibble and data.table change the definition of [.. cc @rafapereirabr

@edzer edzer closed this as completed in 7e22344 Jul 31, 2017
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