Learn R Programming

neuroim2 (version 0.8.5)

lookup,IndexLookupVol,numeric-method: Lookup Values in an IndexLookupVol Object

Description

Performs a lookup operation on an IndexLookupVol object.

Usage

# S4 method for IndexLookupVol,numeric
lookup(x, i)

# S4 method for AbstractSparseNeuroVec,numeric lookup(x, i)

Value

the values of the lookup volume

Arguments

x

An IndexLookupVol object

i

A numeric vector of indices to look up

Examples

Run this code

space <- NeuroSpace(c(64, 64, 64), c(1, 1, 1), c(0, 0, 0))
ilv <- IndexLookupVol(space, c(1:100))
lookup(ilv, c(1, 2, 3))  # Look up values for indices 1, 2, and 3


Run the code above in your browser using DataLab