Misc R helper functions
eqc(x, number=4, overlap=1/sqrt(length(x)))
an abbreviation for
equal.count with useful defaults.
Often useful for Lattice plots.
grep.b(pattern, x) performs a
grep, but returns the
result as a logical (boolean, thus the .b) vector along
rather than as an integer vector indices. Often useful for Lattice
grep.s(pattern, x) performs
grep(pattern, x, value=TRUE) and
thus returns the matched strings rather than their indices.
orderavg(x, by) orders the observations from vector
using the equal-weighted ranking criteria given in matrix
length(x) rows and
n colums), a
vector is coerced.
The ranks computed from each matrix column are summed row-wise,
the resulting vector is sorted according to these rank sums, and returned.
This function can be used to pair elements from two vectors (by ranking
them both by equivalent criteria).
tableNA abbreviation for
table with an additional
exclude = NULL so that
are tabulated as well.
or.else(x, alternative = 0) returns
x where available
alternative can be a scalar or vector and should have the same
printn(x, digits) prints name and value of
the optional argument
digits is used,
x will be coerced to
numeric and formatted with
digits digits precision.
Useful for quick-and-dirty debugging output.
tracebck() is like
traceback except that it returns
(rather than prints) only the first line of each frame. This is useful
because the argument lists of calls often contain large data objects
which clutter the output of
traceback and make it very
difficult to read.
Type the name of a function to see its source code for details.
Lutz Prechelt firstname.lastname@example.org
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.