Learn R Programming

neuroim (version 0.0.6)

axisToIndex: Generic function to convert 1-dimensional real axis coordinates along a single axis dimension to an 1D index along the same axis

Description

Generic function to convert 1-dimensional real axis coordinates along a single axis dimension to an 1D index along the same axis

Usage

axisToIndex(x, real, dimNum)
"axisToIndex"(x, real, dimNum)

Arguments

x
the object
real
the axis coordinates
dimNum
the dimension number of the axis (e.g. 1, 2, 3)

Value

a vector of axis indices