Difference of array and vector
I had had problems getting my head around what an array was as opposed to a data frame and where vectors fitted into the two. I found a useful URL on the same website eluded to below. http://www.burns-stat.com/pages/Tutor/unwilling_S.pdf Go to the heading "The Look and Feel of Objects" Farrel "Michael Kubovy" <kubovy at virginia.edu> wrote in message news:E770E5A1-053B-4FB3-B290-B984350536C0 at virginia.edu...
# Here's a vector: letv <- letters is.vector(letv) # Here's an array: leta <- as.array(letters) is.array(leta) attributes(letv) attributes(leta) To understand the importance of attributes: http://www.burns-stat.com/pages/Spoetry/essentials.pdf There Burns writes (p. 3): "An S array is merely a vector that has a dim attribute, and optionally a dimnames attribute."
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
McCormick Road Charlottesville, VA 22903
Office: B011 +1-434-982-4729
Lab: B019 +1-434-982-4751
Fax: +1-434-982-4766
WWW: http://www.people.virginia.edu/~mk9y/
[[alternative HTML version deleted]]
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.