Displaying 20 results from an estimated 10000 matches similar to: "dealing with empty actual arguments matched by '...' formals"
2012 Jan 04
0
Error formal argument "softmax" matched by multiple actual arguments
I am running the nnet package as
> neural.soft<-nnet(custcat~region+ed+marital+tenure+age+address+income,size=3,softmax=TRUE)
This returns the error message : formal argument "softmax" matched by
multiple actual arguments
Here the dependent variable "custcat" is a factor with 4-levels. This error
does not crop up for any other arguments of nnet(), including
2006 Apr 10
0
get(name, envir=envir) : formal argument "envir" matched by multiple actual arguments
Hi,
very sporadic and non-reproducible, I get the following type of errors:
Error in get(name, envir = envir) : formal argument "envir" matched by
multiple actual arguments
Error in exists(cacheName, envir = envir, inherit = FALSE) : formal
argument "envir" matched by multiple actual arguments
Error in paste(..., sep = sep) : formal argument "sep" matched by
2008 Oct 10
1
formal argument "axes" matched by multiple actual arguments
Hi,
I'm using the add-on package "sound".I have the following
> q<-loadSample("a.wav")
> plot.Sample(q,axes=FALSE)
this gives me the error.
Error in plot.default(sound(s)[1, ], type = "l", col = "red", ylim = c(-1,
:
formal argument "axes" matched by multiple actual arguments
I'm guessing the package has some predefined
2009 Jun 02
2
formal argument "envir" matched by multiple actual arguments
Hi list,
This looks similar to the problem reported here
https://stat.ethz.ch/pipermail/r-devel/2006-April/037199.html
by Henrik Bengtsson a long time ago. It is very sporadic and
non-reproducible.
Henrik, do you remember if your code was using reg.finalizer()?
I tend to suspect it but I'm not sure.
I've been hunting this bug for months but today, and we the help of other
Bioconductor
2008 Mar 06
1
Argument "nomatch" matched by multiple actual arguments ... %in% -> match?!?
When I run R CMD check R.oo on R v2.7.0 devel (2008-03-04 r44677) on
WinXP I get the following error while testing examples:
Error in match(x, table, nomatch = 0) :
formal argument "nomatch" matched by multiple actual arguments
Calls: setMethodS3 -> setMethodS3.default -> %in% -> match
Execution halted
How is that even possible with:
> get("%in%")
function (x,
2003 Oct 21
5
do.call() and aperm()
Hi everyone
I've been playing with do.call() but I'm having problems understanding it.
I have a list of "n" elements, each one of which is "d" dimensional
[actually an n-by-n-by ... by-n array]. Neither n nor d is known in
advance. I want to bind the elements together in a higher-dimensional
array.
Toy example follows with d=n=3.
f <-
2003 Sep 17
1
Just don't do it, surely? (was RE: Retrieve ... argument values)
Tony, I don't understand what you mean. Could you give
an example?
> -----Original Message-----
> From: Tony Plate [mailto:tplate at blackmesacapital.com]
> > ... I'm not saying "never write functions that use ...",
> >I'm just saying "never write functions that depend on a particular
> >argument being passed via ...".
>
> Several
2004 Mar 18
12
substitute question
Consider the following example:
# substitute a with b in the indicated function. Seems to work.
> z <- substitute( function()a+1, list(a=quote(b)) )
> z
function() b + 1
# z is an object of class call so use eval
# to turn it into an object of class expression; however,
# when z is evaluated, the variable a returns.
> eval(z)
function()a+1
Why did a suddenly reappear again
2004 Sep 24
1
algorithm reference for sample() - Knuth
Thank you for the reference to Knuth. Indeed in vol. 2 he has a
> -----Original Message-----
> From: Tony Plate [mailto:tplate@blackmesacapital.com]
> Sent: Friday, September 24, 2004 8:05 AM
> To: Vadim Ogranovich
> Subject: Re: [Rd] algorithm reference for sample()
>
> Have you tried looking in Knuth's books on computer
> algorithms? (They are classics for good
2004 Jan 14
2
automatic "paste" filter to paste only the commands from a transcript on the clipboard
Just for fun (and actually because I would use it too) I wrote a
version of the "paste" menu command that assumes the clipboard
contains a transcript, and just pastes the commands from it into
the R console window (Windows GUI only).
So, if something like this:
> foo <-
+ 33
> foo * 3
[1] 99
> foo
[1] 33
is on the clipboard, then the "paste commands" menu
2003 Oct 23
3
what's going on here with substitute() ?
I was trying to create a function with a value computed at creation time,
using substitute(), but I got results I don't understand:
> this.is.R
Error: Object "this.is.R" not found
> substitute(this.is.R <- function() X,
list(X=!is.null(options("CRAN")[[1]])))
this.is.R <- function() TRUE
> # the above expression as printed is what I want for the
2002 Oct 10
2
tapply for matrices
Does anyone have something like tapply that is extremely fast for matrices when there is a very large number of levels of the grouping variable?
I'm referring to, for example,
tapply(x, grouping.variable, function.operating.on.submatrix)
where x is a matrix and the submatrix is a subset of the rows of x. The grouping variable's length equals the number of rows of x.
--
Frank E
2005 Jun 09
1
single assignment affecting multiple sub-structures (PR#7924)
I'm trying to create a language structure that is a call to a function
with a number of arguments that is only known at run time. I do this by
using repeated indices to expand out a call with a single argument.
However, when I change one of the arguments, all are changed.
I don't see the same behavior when I initially create a call with
multiple arguments.
Even more strangely,
2014 Jan 19
1
formals() adds 0 to complex function arguments
Dear list,
I'm facing an issue with the automated documentation of a function using
roxygen2. The function has a complex-valued default argument, which is
picked up by roxygen2 using formals() to generate the corresponding Usage
section of the Rd file. Unfortunately, it appears that formals() reformats
complex numbers. Consider the example below,
test <- function(a = 1+2i){}
>
2005 May 28
1
(PR#7899) seek(con, 0, "end", rw="r") does not always work
Tony Plate wrote:
> ligges@statistik.uni-dortmund.de wrote:
>
>> tplate@blackmesacapital.com wrote:
>>
>>
>>> I've noticed that seek(con, 0, "end", rw="r") on a file connection
>>> does not always work correctly after a write (R 2.1.0 on Windows).
>>>
>>> [Is a call to fflush() needed inside file_seek() in
2010 Jun 22
1
SSOAP fails with .types[[1]] : subscript out of bounds
Hi,
I am trying to create a BioMoby client in R using SSOAP.
BioMoby is a normal SOAP web service, with request
and response messages wrapped in BioMoby XML dialect.
Since the particular WSDL I am having problems with
is autogenerated and used similarly by *many* services,
it would be quite important to a) fix SSOAP or
b) fix the WSDL generator.
I am a bit lost how to continue debugging
2003 Oct 31
4
Array Dimension Names
I would like to reference array dimensions by name in an apply and a summary
function. For example:
apply(x, "workers", sum)
Is there a better way to do this than creating a new attribute for the array
and then creating new methods for apply and summary? I don't want to name
the individual elements of each dimension (such as with dimnames) but rather
name the dimensions. Thanks
2009 Nov 27
1
Force a variable substitution in expression
Hello,
I have a function that creates an expression object with some variables
substituted e.g
foo <- function(s){
expression({
v <- s
print(v)
})
}
Thus foo returns an expression, however the expression has the symbol 's'
contained within it and thus returns an error when eval'd e.g
x <- foo(10)
eval(x)
Error in eval(expr, envir, enclos) : object 's'
2004 Mar 31
3
Maximum number of connections in R
It appears that the maximum number of connections available
in R is about 48. Can anyone tell me how to bump this number
up? I've been perusing the source, but any info would speed
things up.
Is there a reason that it was set to such a low number?
Thanks for any help.
-Frank
2003 Oct 08
6
Why does a[which(b == c[d])] not work?
Dear list,
I can not understand why the expression in
the subject does not work correct:
> dcrn[which(fn == inve[2])]
numeric(0)
> inve[2]
[1] 406.7
> dcrn[which(fn == 406.7)]
[1] 1.3994e-07 1.3988e-07 1.3953e-07 1.3966e-07 1.3953e-07 1.3968e-07
Is this a kick self problem or an bug?
Thaks very much
Thomas