Skip to content
Prev 15449 / 63424 Next

.Call - applying setAttrib(x, R_DimSymbol, s) to a matrix being an element of a list

On Thu, 17 Mar 2005, Oleg Sklyar wrote:

            
So, as Simon says, you need to create separate objects for the dimensions 
of each matrix, not share the object.  It is the object pointed to by 
imgSize you have attached as the dimensions, not the values.

BTW, setAttrib(element, R_DimSymbol, imgSize) just calls dimgets(element, 
imgSize), so I would have used the latter directly.

I believe you do not have three matrices of 150x75, rather a vector of 
length 40*20 with an inconsistent dim attribute of c(150, 75), etc.