search for: skranz

Displaying 3 results from an estimated 3 matches for "skranz".

Did you mean: kranz
2010 Jul 25
0
Redefine NROW and NCOL to be compatible with nrow and ncol for S3 classes with own dim function?
...13 0.00 5.26 > system.time (speed.ALTNROW(100000)) user system elapsed 3.84 0.00 3.85 For NCOL one could written a similar alternative specification. Best wishes, Sebastian --- Sebastian Kranz Department of Economics, University of Bonn http://www.wiwi.uni-bonn.de/kranz/ skranz@uni-bonn.de [[alternative HTML version deleted]]
2010 Mar 29
1
Suggestion: Adding quick rowMin and rowMax functions to base package
Hi, I wonder whether similarly to the very quick rowSums and colSums functions in the base package, one could add quick functions that calculate the min or max over rows / cols in a matrix. While apply(x,1,min) works, I found out by profiling a program of mine that it is rather slow for matrices with a very large number of rows. A quick functionality seems to be already there in the
2012 Feb 21
2
Using substitute in nested function calls
Dear List members, I really, like the feature that one can call R functions with mathematical expressions, e.g. curve(x^2, 0, 1) I wonder, how I can construct in a simple way a function like mycurve = function (expr) {...} such that that a call mycurve(x^2) has the same effect as the call curve(x^2, -100,100) Below is some code that works, but it seems much to complicated: it first