Hi,
Thanks. I think I failed to communicate what I believe should be
corrected. The error message itself contains correct information, it
is what is missing from the error message that is desired. The
message "argument is missing, with no default" does not inform the
user in what function the e
Try to learn how to debug.
The following copied from my R session might give you some hints:
> options(error=recover)
> geninv(a)
Error in L[k:n, 1:(r - 1)] %*% (t(L[k, 1:(r - 1)])) :
non-conformable arguments
Enter a frame number, or 0 to exit
1: geninv(a)
Selection: 1
Called from: eval(e
Does the following help to clarify things?
>From your original two different definitions of the matrix 'a':
mp <- 10
np <- 5
a <- matrix(c(1:mp*np),mp,np)
a
# [,1] [,2] [,3] [,4] [,5]
# [1,]55555
# [2,] 10 10 10 10 10
# [3,] 15 15 15 1
> "YC" == Yohan Chalabi
> on Fri, 28 Aug 2009 16:24:29 +0200 writes:
> "MM" == Martin Morgan
> on Tue, 18 Aug 2009 06:15:50 -0700
YC> Hi Martin,
YC> Thanks for your response.
MM> Commenting as a user, there's no guarantee that the
MM> 'plot' generic
The problem is that arrays are the same size. The only difference is how they
were built!
The way to build the matrix should not influence in the outcome!
Below is the commented code in MatLab!
Neural Information Processing - Letters and Reviews Vol.8, No.2, August 2005
function Y = geninv(G)
Dear Fabio,
The problem is that L[k,1:(r-1)] is not anymore a matrix but a vector.
Hence when you do t(L[k,1:(r-1)]) you get a matrix with only one row
while I think you expected one column instead. You can see this feature
with a simpler example like the following one:
x <- runif(10)
See details on subsetting
?"["
specifically the drop argument.
To prevent the effects of drop() use
L[k, 1:(r-1), drop=FALSE]
-Christos
> -Original Message-
> From: r-devel-boun...@r-project.org
> [mailto:r-devel-boun...@r-project.org] On Behalf Of Mathieu Ribatet
> Sent: Monday, Augu
Thanks very much!!!
Fábio Mathias Corrêa
Estatística e Experimentação Agropecuária/UFLA
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
_
Full_Name: Richard Calaway
Version: 2.9.2
OS: Mac OS X 10.5.3
Submission from: (NULL) (65.47.30.18)
Here's my sessionInfo():
> sessionInfo()
R version 2.9.2 (2009-08-24)
i386-apple-darwin8.11.1
locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats
Full_Name: Richard Calaway
Version: 2.9.2
OS: Windows Vista
Submission from: (NULL) (65.47.30.18)
If you call setRepositories(graphics=TRUE), or, equivalently, choose "Select
repositories..." from RGui's Packages menu, and then click "Cancel", you are
dropped to the command line menu. Choosing "
Hi, DevelopeRs,
Consider the following simple function:
myFun <- function(){
print(log(-1))
browser()
print("Bye!")
}
With default settings (in particular, options(warn=0)), if you call this
function and then type only standard browser commands (cont, n, where Q) at
the b
11 matches
Mail list logo