powered by
Given an array, returns an array of the same size whose elements are sequentially numbered along the \(i^{\rm th}\) dimension.
arow(a, i)
An integer matrix with the same dimensions as a, with element \(\left(n_1,n_2,\ldots n_d\right)\)
a
being \(n_i\).
array to be converted
Number of the dimension
Robin K. S. Hankin
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