Skip to content
Prev 11569 / 63468 Next

Another wishlist for R

On 26 Jan 2004 15:17:01 +0100, Peter Dalgaard
<p.dalgaard@biostat.ku.dk> wrote :
I think this produces a nice display:
function (x, n = 6) {
    lines <- matrix(deparse(x),ncol=1)
    rownames(lines) <- 1:nrow(lines)
    colnames(lines) <- ''
    noquote(tail(lines,n=n))
}
36         box(...)                                                
37     if (ann)                                                    
38         title(main = main, sub = sub, xlab = xlab, ylab = ylab, 
39             ...)                                                
40     invisible()                                                 
41 }                        

Unfortunately, I doubt if people would really want the result to be a
matrix, so maybe a new class is what is needed.

Duncan Murdoch