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)
Hyerarchical CellNums

Value

integer vector or list of integer vectors with the sequence CellNums splitted

See Also

Examples

data("CharlestonPop")
CharlestonPop.IDs<-spatialPointsCellCodes(CharlestonPop, layers=2)
splitCellNum(CharlestonPop.IDs)


[Package AQuadtree version 1.0.4 Index]