Hi,
not sure if at some earlier stage an error should be thrown:
<hansl>
matrix m1 = {}
eval m1' # gives "empty matrix"
eval mshape(m1, 2, 3) # gives "NULL matrix"
eval transp( mshape(m1, 2, 3) ) # gives syntax error
</hansl>
In particular, perhaps mshape() should be illegal on an empty matrix. Or
alternatively, perhaps it should be filled with NAs. Finally, a luxury
request would be to have a more specific error message in the final line.
thanks,
sven