addDim-methods: Generic function to add a dimension to an object

Description Usage Arguments Examples

Description

Generic function to add a dimension to an object

add dimension to BrainSpace

Usage

1
2
3
4
addDim(x, n)

## S4 method for signature 'BrainSpace,numeric'
addDim(x, n)

Arguments

x

a dimensioned object

n

the size of the dimension to add

Examples

1
2
3
4
x = BrainSpace(c(10,10,10), c(1,1,1))
x1 <- addDim(x, 10)
ndim(x1) == 4
dim(x1)[4] == 10

bbuchsbaum/neuroim documentation built on March 29, 2021, 11:01 a.m.