A set of general functions that I have used in various projects and in other R packages. They support some miscellaneous operations on data frames, matrices and vectors: adding a row on a ternary (3value) data.frame based on positive and negative vectorindicators, rearranging a list of data.frames by rownames, pruning rows or columns of a data.frame that contain only one specific value given by the user, checking for matrix equality, pruning and reordering a vector according to the common elements between its names and elements of another given vector, finding the noncommon elements between two vectors (outersection), normalization of a vector, matrix or data.frame's numeric values in a specified range, pretty printing of vector names and values in an R notebook (common names and values between two vectors also supported), retrieving the parent directory of any string path, checking whether a numeric value is inside a given interval, trim the decimal points of a given numeric value, quick saving of data to a file, making a multiple densities plot and a color bar plot and executing a plot string expression while generating the result to the specified file format.
Package details 


Author  John Zobolas [aut, cph, cre] (<https://orcid.org/0000000236098674>) 
Maintainer  John Zobolas <[email protected]> 
License  MIT + file LICENSE 
Version  0.4.1 
URL  https://github.com/bblodfon/usefun 
Package repository  View on CRAN 
Installation 
Install the latest version of this package by entering the following in R:

Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.