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

neuroim documentation built on May 2, 2019, 1:04 p.m.