我有下面的数据,我想从data_frame转换为R中的sf对象。
head(RwandanDataset[,8:13])
# A tibble: 6 x 6
authority begin_datetime end_datetime longitude latitude elevation
<chr> <chr> <chr> <chr> <chr> <chr>
1 WESTERN 01/01/2013 31/12/9999 29.42 -1.63 2392
2 EASTERN 01/01/2013 31/12/9999 30.24 -1.55 1503
3 EASTERN 01/01/2013 31/12/9999 30.51 -1.90 1575
4 EASTERN 01/01/2013 31/12/9999 30.71 -2.01 1311
5 EASTERN 01/01/2013 31/12/9999 30.67 -2.28 1576
6 NORTHEN 01/01/2013 31/12/9999 30.06 -1.82 1865
class(RwandanDataset)
[1] "tbl_df" "tbl" "data.frame"