Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 83574

Use this tag when asking questions about the R package sf (Simple Features for R)

76 votes
4 answers
67k views

Extracting data.frame from simple features object in R

Is there an sf-native (i.e. "correct") way of extracting everything except the geometry column from a simple features object? … This works df <- dplyr::select(as.data.frame(sf), -geometry) but the select( , -geometry) step feels unnecessary. Also, it doesn't remove the geometry attributes. …
eivindhammers's user avatar
13 votes
1 answer
6k views

Writing multiple layers to GeoPackage using writeOGR() in R?

However, it would be neat if writeOGR() and/or st_write() in the sf package had this built in. … I could write a simple wrapper function for st_write() but native support in sf or rgdal would be better. …
eivindhammers's user avatar