[R] Data Structures

From: Scott Romans <scott.romans_at_mac.com>
Date: Wed, 12 Mar 2008 21:50:42 -0500

Matlab has an aggregate variable called a structure, which consists of component variables each of which can be of a different data type and dimension. For example, I can have a single structure Model which consists of Model.variable1, Model.variable2, and Model.variable3, where variable1 is a string variable, variable 2 is a 1x24 vector, and variable 3 is a 6x6x6 array. The benefit is that the aggregate variable Model can be passed between programs without having to pass each of the component variables. Does R have anything similar?

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 Thu 13 Mar 2008 - 02:57:39 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 Thu 13 Mar 2008 - 04:30:21 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