Takes in geometries arranged with with all the lattitudes first and then all the longitudes and returns a series of lattitude and longitude pairs.

rearrange_geometries(string)

Arguments

string

This is the comma-separated string of lats and corresponding longs (character string expected)

Value

returns a comma-separated string of lat/long pairs

Examples

geometry <- "c(1,2,3,4,5,6)"
rearrange_geometries(geometry)