search for: xprocess

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

Did you mean: process
2011 Mar 29
3
passing arguments via "..."
I would like to do something like the following: Fancyhist<-function(x,...) { # first, process x into xprocess somehow, then ... if (is.null(breaks)) { # yes, I know this is wrong # define the histogram breaks somehow, then call hist: hist(xprocess,breaks=breaks,...) } else { # use breaks give in calling argument hist(xprocess,...) } } But, those of you who know R better than I do have...
2009 Nov 06
3
which data structure to choose to keep multile objects?
...4] [1,] 1.14299486 1.692260 2.241279 2.79030 [2,] 0.01838514 3.818559 7.619719 11.42087 ---------------------------------------- Now I would like to run it many times -- z2 = nnmf(X,2) z3 = nnmf(X,3) z4 = nnmf(X,4) z5 = nnmf(X,5) ... But I would like to do it automatically , something like - xprocess<-function(max_val) { for (iter in 2: max_val) { zz = sprintf( "z%s", iter ) zz <-nnmf(X,iter) } } xprocess(10) ---- But how could I keep collection of my results each run? Shall I have a data structure to keep appending results? something like...