refIdToIndexAndBack: Ref ID to index and vice-versa

refIdToIndexAndBackR Documentation

Ref ID to index and vice-versa

Description

Converts a depthmapX "Ref" ID to the indices (x, y) of a cell, or the reverse

Usage

refIDtoIndex(refID)

indexToRefID(i, j)

Arguments

refID

The Ref ID

i

The x-axis index of the cell

j

The y-axis index of the cell

Value

A pair of indices (x, y) or a Ref ID

Examples

idx <- refIDtoIndex(852645)
# outputs:
#    i   j
# 1 13 677

idx <- indexToRefID(13, 667)
# outputs:
# 852645

alcyon documentation built on Aug. 30, 2026, 1:07 a.m.