USEPA / spsurvey

spsurvey: Spatial Sampling Design and Analysis in R
https://usepa.github.io/spsurvey/
GNU General Public License v3.0
15 stars 5 forks source link

Hierarchical addresses #4

Closed jasonelaw closed 4 years ago

jasonelaw commented 4 years ago

In trying to understand the hierarchical addressing, I noticed that

> constructAddr(0, 0, 1, 1, 2)
[1] "11"
> constructAddr(0.1, 0.1, 1, 1, 2)
[1] "14"

Even more interesting is:

> constructAddr(3.5, 3.5 , 1, 1, 2)
[1] "11"

Is this the desired behavior?

tonyolsen commented 4 years ago

First two arguments must be vectors and not single values. The function assumes output from numLevels where the values for contructAddrs are generated.