Displaying 9 results from an estimated 9 matches for "dotarg".
Did you mean:
dotargs
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',
2005 Apr 15
1
dealing with empty actual arguments matched by '...' formals
...match.call() (as in the function f.R() below). Is there a better way?
I've appended some example functions and test calls in case anyone wants
to play with this and suggest possible alternative methods.
-- Tony Plate
# R function to process empty arguments
f.R <- function(x, ...) {
dotargs <- match.call(expand.dots=F)$...
arg.missing <- sapply(dotargs,
function(a) is.name(a) && as.character(a)=="")
args <- vector("list", length(arg.missing))
i <- 3 # check that args are being eval'd in the right env
args[!arg.m...
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,
2007 Jun 23
2
Names of objects passed as ... to a function?
Dear list,
I have a function whose first argument is '...'. Each element of '...'
is a data frame, and there will be at least 2 data frames in '...'. The
function processes each of the data frames in '...' and returns a list,
whose components are the processed data frames. I would like to name the
components of this returned list with the names of the original data
2010 Jun 22
1
SSOAP fails with .types[[1]] : subscript out of bounds
...paste(",\n\t nameSpaces = ", ifelse(is.na(nameSpaces), nameSpaces,
simple.dQuote(nameSpaces))), if (insertSoapHeader) ", .soapHeader = NULL",
")\n{\n", fixes[1], "\t .SOAP(server, .operation at name, ",
"\n\t\t", dotArgs, if (length(.operation at parameters)) ", " else "",
"\n\t\t", "action = .operation at action, ", "\n\t\t", "xmlns = .operation at namespace, ",
"\n\t\t", ".types = .operation at parameters, ", "\n...
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)
>