search for: dotlist

Displaying 2 results from an estimated 2 matches for "dotlist".

2006 May 27
1
Trouble passing list or non-list to function using ...
Hello, Simply put, I'm trying to call a function "testme" with value "age=NA". I wish to use "dotlist<-list(...)" inside the function and have dotlist become: $age [1] NA I'm modifying existing code and need to minimize changing that code so it's easiest to conform how I call the existing function. My sample code fragment, results, and R.version information are listed below. I...
2006 Jun 29
3
advice on arguments
...us". Do I (1) add "radius" to the argument list, cluttering up the argument list for one particular special case? (2) add "size" to the argument list, so that it doesn't become part of "..." and I can say spheres3d(radius=size,...) ? (3) do something like dotlist = list(...) if (type=="s" && !is.null(dotlist$size)) radius <- dotlist$size and pull "size" out of ... myself (and make a note to that effect in the documentation)? (I guess another general solution to this is to ask for lists of arguments, like MoreArgs in map...