R wraps csv’d lists of numbers (comma separated values i.e. 1, 2, 3) in the c() function, a part of the R core library, which converts csv’d lists of numbers into vectors.
These vectors look like Ruby or Java arrays, with the exception that these csv’d lists are wrapped in c() rather than []. It seems like arrays are really a subset of vectors. Is it true? And if so, what does this mean when it comes to arrays and matrices?
One discussion on the subject I found stated that arrays are static vectors. But in Ruby, arrays aren’t static. In Ruby, arrays are vectors?
Yep, in R an array is just a vector equipped with attributes that give the dimensions of the array.
From
?array:Maybe the easiest way to see this for yourself is to have a look at a vector, a matrix, and a higher dimensional array, like this: