“length of ‘dimnames’ [2] not equal to array extent” on one of two very similar sets

It is unclear how you created those data.frames. From the str output they appear not to be ordinary data.frames but some other kind of lists, so it might be necessary to convert your objects to data.frames first. Use as.matrix(as.data.frame(vols)).

Leave a Comment