【发布时间】:2021-10-02 05:12:32
【问题描述】:
我的data.frame 包含两个numeric 变量,分别称为g_lat 和g_long,它们代表了地理坐标
观察。它看起来像这样:
| variable 1 | g_lat | g_long |
|---|---|---|
| 320000 | -34.23000 | 19.42833 |
| 600000 | 16.10000 | -22.80000 |
如何在sf 对象中转换此data.frame,其中变量g_lat;g_long 被视为几何列列表?
我尝试使用st_as_sf 函数,但出现错误:only 0's may be mixed with negative subscripts
非常感谢您的宝贵时间
【问题讨论】:
标签: r coordinates geospatial spatial