Re: [R] R objects layout

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Wed, 26 Mar 2008 13:43:38 -0400

On 3/26/2008 12:20 PM, Faheem Mitha wrote:
> Hi,
>
> Can anyone point me to documentation of how R objects such as vectors,
> lists, matrices and data frames are laid out in memory? For example, which
> of these are laid out as a 1-d array, 2-d array and so forth?

Vectors, lists and matrices are 1-d arrays. Data frames are lists of vectors. This is in various places in the Intro and Language Reference manuals. For example, from the latter:

"Matrices and arrays are simply vectors with the attribute dim and optionally dimnames attached to the vector."

Duncan Murdoch

> The R Internals document seems like the natural place to look, but I don't
> see it there. If such things are only documented in source code, could you
> point me to the relevant place(s)?
>
> (Please CC me; I'm not subscribed.)
> Thanks, Faheem.
>
> ______________________________________________
> R-help_at_r-project.org 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.



R-help_at_r-project.org 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. Received on Wed 26 Mar 2008 - 21:09:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 26 Mar 2008 - 21:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive