Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

splitCellNum

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)

AQuadtree

Confidentiality of Spatial Point Data

v1.0.2
MIT + file LICENSE
Authors
Raymond Lagonigro [aut, cre] (<https://orcid.org/0000-0002-8091-4296>), Ramon Oller [aut] (<https://orcid.org/0000-0002-4333-0021>), Joan Carles Martori [aut] (<https://orcid.org/0000-0002-8400-5487>)
Initial release
2020-09-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.