From dmurdoch at pair.com  Mon Jan 26 14:46:41 2004
From: dmurdoch at pair.com (Duncan Murdoch)
Date: Mon Jan 26 14:48:18 2004
Subject: [Rd] Another wishlist for R
In-Reply-To: <4012A99F.8030004@pburns.seanet.com>
References: <Pine.LNX.4.44.0401241416280.11292-100000@gannet.stats>
	<4012A99F.8030004@pburns.seanet.com>
Message-ID: <pq5a10pn7b6itfnkga71fbggqa6crsds1o@4ax.com>

I like the head() and tail() functions -- nice additions.

One question:  is there a return type or class for head.function that
would print without the quotes?  E.g.

> head(plot.default)
[1] "function (x, y = NULL, type = \"p\", xlim = NULL, ylim = NULL, "
[2] "    log = \"\", main = NULL, sub = NULL, xlab = NULL, ylab =
NULL, "         
[3] "    ann = par(\"ann\"), axes = TRUE, frame.plot = axes,
panel.first = NULL, "
[4] "    panel.last = NULL, col = par(\"col\"), bg = NA, pch =
par(\"pch\"), "    
[5] "    cex = 1, lty = par(\"lty\"), lab = par(\"lab\"), lwd =
par(\"lwd\"), "   
[6] "    asp = NA, ...) "     

would look nicer as

> head(plot.default)
function (x, y = NULL, type = "p", xlim = NULL, ylim = NULL, 
    log = "", main = NULL, sub = NULL, xlab = NULL, ylab = NULL, 
    ann = par("ann"), axes = TRUE, frame.plot = axes, panel.first =
NULL, 
    panel.last = NULL, col = par("col"), bg = NA, pch = par("pch"), 
    cex = 1, lty = par("lty"), lab = par("lab"), lwd = par("lwd"), 
    asp = NA, ...) 

(which are the first 6 lines you see if you print plot.default).

Duncan Murdoch


[Rd] Another wishlist for R
Duncan Murdoch