[R] dump not evaluating promises?

Peter Dalgaard pdalgd at gmail.com
Fri Apr 30 17:47:45 CEST 2010


D Sonderegger wrote:
> What I was expecting was for the second dump was:
> foo <- 
> structure(c(1,2,3,4,5,6), .Dim = c(2L, 3L)) 
> 
> That is, I was expecting dump to expand the 1:6 and 2:3 into the actual
> vectors. 

Well,

> dput(c(1,2,3))
c(1, 2, 3)
> dput(c(1L,2L,3L))
1:3

And dump() does likewise.


-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list