Re: [Rd] array() ignores illegal non-list dimnames

2015-12-19 Thread Martin Maechler
> William Dunlap via R-devel > on Thu, 17 Dec 2015 14:40:18 -0800 writes: > Is there a reason that array() silently ignores dimnames > that are not a list but matrix() gives an error? >> str(matrix(11:14, 2, 2, dimnames=c("Rows","Cols"))) > Error in matrix(11:14, 2, 2

[Rd] array() ignores illegal non-list dimnames

2015-12-17 Thread William Dunlap via R-devel
Is there a reason that array() silently ignores dimnames that are not a list but matrix() gives an error? > str(matrix(11:14, 2, 2, dimnames=c("Rows","Cols"))) Error in matrix(11:14, 2, 2, dimnames = c("Rows", "Cols")) : 'dimnames' must be a list > str(array(11:14, dim=c(2, 2), dimnames=