Skip to content
Prev 17458 / 398513 Next

Matrix of Elements of Different Types (was Interfacing pre-existing C++ library from R)

On Tue, 26 Feb 2002, Gabor Grothendieck wrote:

            
my.list$dim refers to the element called dim in my.list, it's a
piece of your information. 
dim(my.list) refers to the dimension attribute of the object
called my.list, it's an information on how the data are arranged in
the object:
Information kept in my.list:
[1] 1 2 3
[1] 2 2

Instead, information on my.list:
$dim
[1] 2 2
[1] 2 2

The attributes of an object are organized in a list.


For a matrix it would be equivalent: one thing 
are the cell elements, another the dimension of the matrix (that is,
how you want the elements to be organized).
[1] 1
[1] 4 3
which is equivalent to:
[1] 4 3
What's the goal? I mean, what information you have and how you want it
organized? 

Agus


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._