>
> On the other hand R has also vectors distinct from row- or column vectors. 
>
> > x = matrix(0, 3, 3)
> > x
>      [,1] [,2] [,3]
> [1,]    0    0    0
> [2,]    0    0    0
> [3,]    0    0    0
> > x[1,]
> [1] 0 0 0
> > x[,1]
> [1] 0 0 0
>
>
Here the row (or the column) are both vectors. 
However, R provides a way of forcing results to be
matrices without dropping dimension. I often find this
quite useful. 
 

> > x[1, ,drop = FALSE]
>      [,1] [,2] [,3]
> [1,]    0    0    0
> > x[, 1,drop = FALSE]
>      [,1]
> [1,]    0
> [2,]    0
> [3,]    0 
>
>
Here indexing operates consistently. 
The unique feature of Julia seems that to remember the user that internally 
row indexing is treated differently (a bit like in Mathematica?)


Reply via email to