cberry@tajo.ucsd.edu
1999-Nov-11 02:40 UTC
expand.grid returns vector for single arg (PR#319)
<<insert bug report here>> IMHO, expand.grid(1:3) should return an object of class "data.frame". Instead I get> class(expand.grid(1:3))NULL Chuck Berry --please do not edit the information below-- Version: platform = sparc-sun-solaris2.7 arch = sparc os = solaris2.7 system = sparc, solaris2.7 status = Release major = 0 minor = 65.1 year = 1999 month = October day = 07 language = R Search Path: .GlobalEnv, package:Rbqtl, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Prof Brian D Ripley
1999-Nov-11 07:14 UTC
expand.grid returns vector for single arg (PR#319)
On Thu, 11 Nov 1999 cberry@tajo.ucsd.edu wrote:> IMHO, > > expand.grid(1:3) > > should return an object of class "data.frame".[using 0.65.1 it returns its argument if there is just one] It will in 0.90.0: this has already been altered: BUG FIXES ... o expand.grid returns a data frame even for one arg I am not sure that is what I think it should do (no expanding goes on) but it is what the documentation says and the prototype does. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._