axisToIndex {neuroim}R Documentation

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)

## S4 method for signature 'BrainSpace,numeric,numeric'
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


[Package neuroim version 0.0.6 Index]