[R] force apply not to drop the dimensions of FUN results ?
Claudia Beleites
cbeleites at units.it
Wed Nov 10 14:09:04 CET 2010
Dear Yves,
You may not need to do more than set the dim attribute correctly:
dim (test) <- c (dim (myArray) [c (3 : 4, 1 : 2)]
or
dim (test) <- c (dim (myArray) [c (4 : 3, 1 : 2)]
Claudia
--
Claudia Beleites
Dipartimento dei Materiali e delle Risorse Naturali
Università degli Studi di Trieste
Via Alfonso Valerio 6/a
I-34127 Trieste
phone: +39 0 40 5 58-37 68
email: cbeleites at units.it
More information about the R-help
mailing list