Learn R Programming

alcyon (version 0.7.0)

refIdToIndexAndBack: 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)

Value

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

Arguments

refID

The Ref ID

i

The x-axis index of the cell

j

The y-axis index of the cell

Examples

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

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

Run the code above in your browser using DataLab