Given an array, returns an array of the same size whose elements are sequentially numbered along the \(i^{\rm th}\) dimension.
arow(a, i)
array to be converted
Number of the dimension
An integer matrix with the same dimensions as a, with element \(\left(n_1,n_2,\ldots n_d\right)\) being \(n_i\).
a
# NOT RUN { a <- array(0,c(3,3,2,2)) arow(a,2) (arow(a,1)+arow(a,2)+arow(a,3)+arow(a,4))%%2 # }
Run the code above in your browser using DataLab