![](../logo.png)
Extract longitudes or latitudes from sampling cell IDs.
Source:R/make_lonlat_from_samplingcell_ids.R
make_lonlat_from_samplingcell_ids.Rd
Extract longitudes or latitudes from sampling cell IDs.
Arguments
- ids
A character vector of sampling cell IDs
- type
A string indicating whether longitude ("lon") or latitude ("lat") should be extracted.
Examples
make_lonlat_from_samplingcell_ids(ids=c("2.15_41.35", "2.10_41.20"), type="lon")
#> [1] "2.15" "2.10"