Generate sf objects (9)
df <- tibble(v1 = c("A", "B", "C", "D"))
df
## # A tibble: 4 × 1
## v1
## <chr>
## 1 A
## 2 B
## 3 C
## 4 D
p_sf <- st_sf(df, geometry = p_sfc)
p_sf
## Simple feature collection with 4 features and 1 field
## Geometry type: GEOMETRY
## Dimension: XY
## Bounding box: xmin: 2 ymin: 0 xmax: 13 ymax: 4
## CRS: NA
## # A tibble: 4 × 2
## v1 geometry
## <chr> <GEOMETRY>
## 1 A POINT (2 2)
## 2 B POINT (2.5 3)
## 3 C MULTIPOINT ((6 2), (6.1 2.6), (6.8 2.5), (6.2 1.5), (6.8 1.8))
## 4 D POLYGON ((10 0, 11 0, 13 2, 12 4, 11 4, 10 0), (11 1, 11 2, 12 2, 11 1))