From Prof Brian Ripley <ripley@stats.ox.ac.uk>  Thu Jan 27 17:21:29 2000
From: Prof Brian Ripley <ripley@stats.ox.ac.uk> (Prof Brian Ripley)
Date: Thu, 27 Jan 2000 17:21:29 +0000 (GMT)
Subject: handling of dimension-attribute in density (PR#406)
Message-ID: <200001271721.RAA09498@toucan.stats.ox.ac.uk>

> From: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
> Date: 27 Jan 2000 18:12:21 +0100
> 
> polzehl@wias-berlin.de writes:
> 
> > ######## x probably is still a matrix in the call of var()  ########
> 
> Exactly. Do we fix sd() or density() or both?

Both. density needs an x <- as.vector(x), and I think sd needs 
to return the  standard deviation*s* if given a matrix or data frame.
Its current behaviour is wrong.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


handling of dimension-attribute in density (PR#406)
Prof Brian Ripley