powered by
eachVolume(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex = FALSE, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...) "eachVolume"(x, FUN, withIndex, mask, ...)
BrainVector
function
withIndex
list
FUN
bvec <- BrainVector(array(rnorm(24*24*24*24), c(24,24,24,24)), BrainSpace(c(24,24,24,24), c(1,1,1))) res <- eachVolume(bvec, mean) res <- eachVolume(bvec, function(x,i) median(x), withIndex=TRUE)
Run the code above in your browser using DataLab