Displaying 3 results from an estimated 3 matches for "anotherfunct".
Did you mean:
anotherfunc
2009 May 22
1
Paste Strings as logical for functions?
Dear R Users,
I have some dynamic selection rules that I want to pass around for my functions:
>rules <- paste(g$TrialList==1 & g$Session==2)
>myfunction <- function(rules) {
> index <- which(rules)
> anotherFunction(index)
> }
However, I can't find a way to pass around these selection rules
easily (for subset, for which, etc)
Please let me know if you have some idea.
Thank you very much!
- John
2008 Jan 20
1
Prototype.js with jsDoc-toolkit?
...ds Bar
*/
Foo = Class.create(Bar, {
/**
* @constructor
*/
initialize : function() {
/**
* An important number
* @type Number
*/
this.important_number = 9999;
// do more stuff
},
/**
* This function does something else
* @return {Object} Something
*/
anotherFunction : function() {
...snip...
});
</code>
It has some problems:
1. I have to declare it as @class.
2. ''Bar'' is not recognized as the superclass.
3. I have to declare initialize as @constructor.
4. The comments for the object properties (this.important_number)
(done eith...
2002 Nov 13
3
using list to pass argument to function
Hi,
I am trying to apply *sapply* to functions within functions within functions
to do a Monte Carlo experiment: take Y sample of size X based on cell
probabilities (using Brian Ripley's suggestion for drawing from contingency
tables), for each calculate a vector of statistics, calculate bootstrap std
errs with R replications and their means and SD. Store results in a matrix
for further