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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > # 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]] > > ______________________________________________ > [email protected] 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. > ______________________________________________ [email protected] 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.
