Skip to content
Back to formatted view

Raw Message

Message-ID: <20040306141525.7EA69EFC4@slim.kubism.ku.dk>
Date: 2004-03-06T15:15:34Z
From: Uwe Ligges
Subject: 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