On Dec 29, 2006, at 2:16 PM, Geoffrey Zhu wrote: > Does anyone know what is the real difference of vector and array?
# 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.
