Displaying 8 results from an estimated 8 matches similar to: "Names of objects passed as ... to a function?"
2008 Jul 05
3
Editing the "..." argument
Dear all,
I'd like tweaking the ... arguments that one user can pass in my
function for fitting a model. More precisely, my objective function is
(really) problematic to optimize using the "optim" function.
Consequently, I'd like to add in the "control" argument of the latter
function a "ndeps = rep(something, #par)" and/or "parscale =
2012 Apr 12
1
Help with vectorization
Hi every one. I have a exponential function (3 fitting parameters) that I
would like to use to produce data (6 series) without having to use a loop.
Here
wl = seq(300,500,1)
k1 = c(1.2e-6, 4.9e-6, 9.6e-6, 2.7e-10, 6.7e-8, 7.44e-6)
k2 = c(726, 352, 128, 5232, 1538, 128)
k3 = c(-176, -224, -257, 88.7, -111, -256)
stations = c('R5d', 'R5a', 'R9', '108',
2003 Feb 17
2
returning argument names
Dear r-list folks,
I have a problem which has been bugging me for a while now and I was hoping
someone out there might be able to help.
If I have a user-defined function with an indeterminate number of
arguments, using the well-known "..." construct, how can I get the
function to return the names of the items which were the arguments of the
function as part of the function's
2006 Nov 30
3
writing function with ,... )
Hi to all
I did not found the right hints for functions with the dot-dot-dot argument.
Is it possible to write own functions with the tree dots and if yes
what's wrong with the following example?
test <- function(x, ...)
{
print (x)
if (exists("y"))print(y)
if (exists("z"))print(z)
}
test(4,y=2)
With regards Carmen
2002 Dec 17
3
Changing "..." inside a function: impossible? desirable?
This is was something like a request for your comments, thoughts
on the topic...
Many of you will know that the "..." (aka \dots) argument is
very useful for passing ``further graphical parameters'',
but can be a pain when itself is passed to too many plotting
functions inside your own function.
An artificial example being
myplot <- function(x,y, ...) {
plot(0:1, 0:1,
2005 Apr 15
1
dealing with empty actual arguments matched by '...' formals
I'm trying to write some functions to deal with empty actual arguments
that are picked up by '...' formals. Such actual arguments are common
(and very useful) in calls to subsetting functions, e.g., x[1:2,]. It
seems that R and S-PLUS treat these arguments differently: in S-PLUS
list(...) will return a list containing just the non-empty arguments,
whereas in R list(...) stops
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
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused.
Here are the commands I have entered:
> data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",")
> NumberOfActionsByStatus = data$STATUS
> NumberOfActionsByUser = data$ETS_LOGIN
> NumberOfBidOffer = data$BID_OFFER
> NumberOfActionsByUser.freq = table(NumberOfActionsByUser)
>