Note that there are some explanatory texts on larger screens.

plurals
  1. POFinding What You Need in R: focused searching within R and all (3,500+) CRAN Packages
    primarykey
    data
    text
    <p>Often in R, there are a dozen functions scattered across as many packages--all of which have the same purpose but of course differ in accuracy, performance, documentation, theoretical rigor, and so on.</p> <p>How do you locate these--from within R and even from among the CRAN Packages which you have not installed?</p> <p>So for instance: the generic <strong><em>plot</em></strong> function. Setting secondary ticks is much easier using a function <strong>outside</strong> of the base package:</p> <pre><code>minor.tick(nx=n, ny=n, tick.ratio=n) </code></pre> <p>Of course <em>plot</em> is in R core, but <em>minor.tick</em> is not, it's actually in <em>Hmisc</em>. </p> <p>Of course, that doesn't show up in the documentation for <em>plot</em>, nor should you expect it to. </p> <p>Another example: data-input arguments to <em>plot</em> can be supplied by an object returned from the function <em>hexbin</em>, again, this function is from a library <em>outside</em> of R core.</p> <p>What would be great obviously is a programmatic way to gather these function arguments from the various libraries and put them in a single namespace?</p> <p>*edit: (trying to re-state my example just above more clearly:) the arguments to <em>plot</em> supplied in R core, e.g., setting the axis tick frequency are xaxp/yaxp; however, one can also set a/t/f via a function outside of the base package, again, as in the minor.tick function from the Hmisc package--but you wouldn't know that just from looking at the plot method signature. Is there a meta function in R for this?*</p> <p>So far, as i come across them, i've been manually gathering them, each set gathered in a single <em>TextMate</em> <em>snippet</em> (along with the attendant library imports). This isn't that difficult or time consuming, but i can only update my snippet as i find out about these additional arguments/parameters. Is there a canonical R way to do this, or at least an easier way?</p> <p>Just in case that wasn't clear, i am not talking about the case where multiple packages provide functions directed to the same statistic or view (e.g., 'boxplot' in the base package; 'boxplot.matrix' in gplots; and 'bplots' in Rlab). What i am talking is the case in which the function name is the same across two or more packages.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload