On 01/29/2011 11:59 PM, Prof Brian Ripley wrote:
On Sat, 29 Jan 2011, Martin Maechler wrote:
Tobias Verbeke
on Tue, 25 Jan 2011 21:27:41 +0100 writes:
> L.S.
> Please find below a patch for dendrogram.R (stats package)
> against revision r54107 which allows one to pass the xpd
> parameter as
Hi.
The following results in a data.frame with column names starting with "A.":
> X <- data.frame(x=1:2, y=1:2)
> X
x y
1 1 1
2 2 2
> data.frame(A=X)
A.x A.y
1 1 1
2 2 2
whereas with a single-column matrix you won't get "A.":
> Y <- X[,1,drop=FALSE];
> Y
x
1 1
2 2
> data.frame