Timeline for Extracting data.frame from simple features object in R
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 22, 2020 at 20:15 | comment | added | eivindhammers |
1. The problem was to extract the entire data.frame, not selected columns. This solution is not particularly well suited for this purpose, except for very small datasets, and certainly is not "sf-native". 2. I guess the simplicity of a method might be a matter of opinion, but st_set_geometry , st_drop_geometry and st_geometry are all mostly self-explanatory, and shorter than your method.
|
|
Jul 22, 2020 at 19:52 | comment | added | joaoal | well, you can index as much columns with this method as you like, so I do not really see why this should not solve the problem. In addition is it easier than the method suggested above. | |
Jul 17, 2020 at 22:54 | comment | added | eivindhammers |
This extracts a single column as a vector (sf$`some column name` is equivalent and simpler), and does not answer the question.
|
|
Jul 13, 2020 at 10:35 | review | Low quality posts | |||
Jul 13, 2020 at 10:35 | |||||
Jul 13, 2020 at 10:12 | history | answered | joaoal | CC BY-SA 4.0 |