splitCellNum {AQuadtree} | R Documentation |
Split CellNum sequence into a vector
Description
createQuadtree
returns a vector decomposing the given CellNum into the
sequence of the different cell numbers for each level.
Usage
splitCellNum(x)
Arguments
x |
a character or character vector containing a sequence of cell numbers or an R object with a field named 'cellNum' |
Details
CellNum is an integer with the concatenated sequence of hierarchical cell positions
inside a main cell. splitCellNum
splits that sequence into a vector.
For instance, the CellNum of the top right cell would be 416 (fourth
in first partition, sixteenth in second partition)
Value
integer vector or list of integer vectors with the sequence CellNums splitted
See Also
-
D2.8.I.2 INSPIRE Specification on Geographical Grid Systems – Guidelines https://inspire.ec.europa.eu/documents/Data_Specifications/INSPIRE_Specification_GGS_v3.0.1.pdf
-
EEA reference grid dataset https://data.europa.eu/euodp/data/dataset/data_eea-reference-grids-2
Examples
data("CharlestonPop")
CharlestonPop.IDs<-spatialPointsCellCodes(CharlestonPop, layers=2)
splitCellNum(CharlestonPop.IDs)