Learn R Programming

neuroim (version 0.0.6)

dropDim: Generic function to drop a dimension from an object

Description

Generic function to drop a dimension from an object

Usage

dropDim(x, dimnum)
"dropDim"(x, dimnum)
"dropDim"(x, dimnum)
"dropDim"(x, dimnum)
"dropDim"(x, dimnum)
"dropDim"(x, dimnum)
"dropDim"(x)

Arguments

x
a dimensioned object
dimnum
the index of the dimension to drop

Examples

Run this code
x = BrainSpace(c(10,10,10), c(1,1,1))
x1 <- dropDim(x)
ndim(x1) == 2
dim(x1)[2] == 10

Run the code above in your browser using DataLab