[R] dimensions of a all objects
maechler at stat.math.ethz.ch
Tue Jan 9 16:09:20 CET 2007
>>>>> "BaRow" == Barry Rowlingson <b.rowlingson at lancaster.ac.uk>
>>>>> on Tue, 09 Jan 2007 14:53:05 +0000 writes:
BaRow> Farrel Buchinsky wrote:
>> Why will the following command not work
>> What does it say about the objects list? What does it say about the dim
>> Likewise, the following also does not work
>> for (f in all) print(dim(f))
BaRow> 'objects()' returns character strings - the names of objects - then
BaRow> the dim of the character strings are all NULL.
BaRow> I'll assume that's what you are getting at - you've not posted an
BaRow> example or the output you are getting or why it 'does not work'.
BaRow> Maybe you want this:
BaRow>  2 5
BaRow>  5 2
BaRow> - where m and y are matrices, f is a function, x is a scalar.
Since he's just interested in "print"ing, maybe
ls.str() # would be even more revealing (or maybe too
# confusing for a newbie)
More information about the R-help