Full_Name: Xiong Guanglei Version: 1.8.1 OS: Linux Submission from: (NULL) (202.38.103.50)> as.matrix(1:10,nrow=1)Error in as.matrix(1:10, nrow = 1) : unused argument(s) (nrow ...)
linuxfavor@sohu.com writes:> Full_Name: Xiong Guanglei > Version: 1.8.1 > OS: Linux > Submission from: (NULL) (202.38.103.50) > > > > as.matrix(1:10,nrow=1) > Error in as.matrix(1:10, nrow = 1) : unused argument(s) (nrow ...)And? Try having a look at help(as.matrix) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
Why are you reporting your own error to R-bugs? Do read the help page for as.matrix. And, BTW, several people have asked you for further information on your last report (PR#6648), and you have not had the courtesy to reply. Please do respond to those requests. On Sat, 6 Mar 2004 linuxfavor@sohu.com wrote:> Full_Name: Xiong Guanglei > Version: 1.8.1 > OS: Linux > Submission from: (NULL) (202.38.103.50) > > > > as.matrix(1:10,nrow=1) > Error in as.matrix(1:10, nrow = 1) : unused argument(s) (nrow ...)-- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
ligges@statistik.uni-dortmund.de
2004-Mar-06 15:15 UTC
[Rd] as.matrix(1:10,nrow=1) not work (PR#6650)
linuxfavor@sohu.com wrote:> Full_Name: Xiong Guanglei > Version: 1.8.1 > OS: Linux > Submission from: (NULL) (202.38.103.50) > > > >>as.matrix(1:10,nrow=1) > > Error in as.matrix(1:10, nrow = 1) : unused argument(s) (nrow ...)*Please*, don't send bug reports if you are using code erroneously! Please ask on r-help instead! as.matrix() does except exactly one argument, an object to be coerced to a matrix. That is documented! You are looking for matrix() (without the "as.")! Uwe Ligges