powered by
Given an array, returns the first non-singleton dimension. Useful for emulating some of Matlab / Octave's multidimensional functions.
If n is supplied, return the first n nonsingleton dimensions.
n
fnsd(a,n)
Returns an integer vector with elements in the range 1 to
1
length(dim(a)).
length(dim(a))
An array
Integer. Return the first n nonsingleton dimensions
Robin K. S. Hankin
arev
a <- array(1:24,c(1,1,1,1,2,1,3,4)) fnsd(a) fnsd(a,2)
Run the code above in your browser using DataLab