A Collection of Useful Functions by John
Add a row to a 3-valued (ternary) data.frame
Add vector to a (n x 2) data frame
Binarize matrix to given threshold
100 distinct colors
Convert decimal number to its binary representation
Get the common names of two vectors
Get the common values of two vectors
Retrieve the parent directory
Get percentage of matches between two vectors
Generate ROC statistics
Get stats for unique values
Get ternary class id
Is value between two others?
Is object empty?
Rearrange a list of data frames by rownames
Make a color bar plot
Multiple densities plot
Matrix equality
Range normalization
Outersect
Get partial permutation of a vector
Powerset Intersection Table
Bootstrap Confidence Intervals for Precision-Recall Curves
Compare two Precision-Recall curves
Pretty print a bold string
Pretty print a name and value
Pretty print a string
Pretty printing of a vector's names and values
Pretty printing of a vector's names attribute
Pretty printing of a vector's values
Print an empty line
Prune and reorder vector elements
Prune single-value columns from a data frame
Prune single-value rows from a data frame
Remove commented and empty lines
Save data frame to a specified file
Save matrix to a specified file
Save vector to a specified file
Specify decimal
usefun
A set of general functions that I have used in various projects and other R packages. Miscellaneous operations on data frames, matrices and vectors, ROC and PR statistics.