Finding what you need in R: focused search inside R and all (3,500+) CRAN packages

Often in R there are a dozen functions scattered across many packages - they all have the same goal, but, of course, differ in accuracy, performance, documentation, theoretical rigor, etc.

How do you find them - from R and even from CRAN packages that you did not install?

So for example: the general plot function . Installing secondary ticks is much easier with a function outside the base package:

minor.tick(nx=n, ny=n, tick.ratio=n)

Of course, the plot is in the core of R, but minor.tick is not, it is actually in Hmisc.

Of course, this does not appear in the plot documentation, and you do not expect this.

Another example: data entry arguments for a graph can be provided by the object returned from the hexbin function, again, this function is from a library outside the R kernel.

What would be great is this a programmatic way to collect these function arguments from different libraries and put them in the same namespace?

* edit: (trying to display my example above more clearly again :) construction arguments supplied in the R core, for example, setting the axis tick frequency - xaxp / yaxp; however, you can also set a / t / f via a function outside the base package, again, as in the minor.tick function from the Hmisc package - but you would not know that just by looking at the signature of the plot method, is there a meta -function in R? *

, , , TextMate ( ). , , /. R , , ?

, , , , (, "boxplot" ; "boxplot.matrix" gplots; "bplots" Rlab). , .

+5
2

" sos" - . findFn ", ( ) " " , (" findFn").

: , MaxScore, TotalScore, , , , , . "" , .

: , 1800+ R.

library(sos)
cf = findFn("convolve") 

"", , .

"cf" HTML ( 23). HTML- , . , , ( "Count", "MaxScore" ..) , , "", " " ..

( : "panel.tskernel" "latticeExtra". , - , .

+5

. .

formals - , , ... hadArg. , getAnywhere, hasArg. . , .

+1

All Articles