|
|
|
|
|
by kgwgk
2370 days ago
|
|
From that link: > A vector is what is called an array in all other programming languages except R Vectors are called vectors in several "wispy" languages: Common Lisp, Scheme, Clojure... > An array with two dimensions is (almost) the same as a matrix. I think it's the same, not "almost" the same. At least in the current version of R: > class(array(1, c(2,3)))
[1] "matrix"
> identical(array(1, c(2,3)), matrix(1, nrow=2, ncol=3))
[1] TRUE
In 4.0 there will be a change and the class of a matrix will be both "matrix" and "array", but I think the fact that there is no difference between a 2-dimensional array and a matrix remains. |
|