[R] array(list(),c(2,5)) gives error in R 1.8.1
Christoph Lehmann
christoph.lehmann at gmx.ch
Wed Jan 14 10:35:57 CET 2004
Hi
In R 1.7 the following worked fine:
> array(list(),c(2,5))
[,1] [,2] [,3] [,4] [,5]
[1,] NULL NULL NULL NULL NULL
[2,] NULL NULL NULL NULL NULL
now in R 1.8.1 I get the error:
Error in rep.int(data, t1) : invalid number of copies in "rep"
In addition: Warning message:
NAs introduced by coercion
thanks for help, I need this possibility for storing objects (lm
results) in an array
cheers
Christoph
--
Christoph Lehmann <christoph.lehmann at gmx.ch>
More information about the R-help
mailing list