Flatten a list of rsgeo vectors
Examples
pnts <- replicate(
10,
geom_point(runif(1), runif(1)),
simplify = FALSE
)
flatten_geoms(pnts)
#> <rs_POINT[10]>
#> [1] Point(Coord { x: 0.8209462941158563, y: 0.6470601938199252 }))
#> [2] Point(Coord { x: 0.7829327622894198, y: 0.5530363116413355 }))
#> [3] Point(Coord { x: 0.5297195801977068, y: 0.7893562316894531 }))
#> [4] Point(Coord { x: 0.023331202333793044, y: 0.47723006503656507 }))
#> [5] Point(Coord { x: 0.7323137386702001, y: 0.6927315564826131 }))
#> [6] Point(Coord { x: 0.4776196221355349, y: 0.8612094768323004 }))
#> [7] Point(Coord { x: 0.4380971072241664, y: 0.24479727703146636 }))
#> [8] Point(Coord { x: 0.07067904714494944, y: 0.09946616017259657 }))
#> [9] Point(Coord { x: 0.3162717071827501, y: 0.5186342631932348 }))
#> [10] Point(Coord { x: 0.6620050764176995, y: 0.4068301871884614 }))