Miscellaneous general purpose functions


[Up] [Top]

Documentation for package ‘NCmisc’ version 1.1

Help Pages

NCmisc-package Miscellaneous one line functions
check.linux.install Check whether a given system command is installed (e.g, bash)
cor.with Simulate a correlated variable
Dim A more general dimension function
estimate.memory Estimate the memory required for an object.
exists.not.function Does object exist ignoring functions
fakeLines Create fake text for testing purposes
force.percentage Force argument to be a percentage with length one
force.scalar Force argument to be a numeric type with length one
get.distinct.cols Return up to 22 distinct colours.
Header Print heading text with a border.
headl A good way to preview large lists.
loop.tracker Creates a progess bar within a loop
Mode Find the mode of a vector.
must.use.package Do everything possible to load an R package.
narm Return an object with missing values removed.
NCmisc Miscellaneous one line functions
packages.loaded Check whether a set of packages has been loaded
pad.left Print a vector with appropriate padding so each has equal char length.
pctile Find data thresholds corresponding to percentiles
preview Output variable states within functions during testing/debugging
prv Output variable states within functions/loops during testing/debugging
prv.large Tidy display function for matrix objects
Rfile.index Create an index file for an R function file
rmv.spc Remove leading and trailing spaces (or other character).
search.cran Search all CRAN packages for those containing keyword(s).
sim.cor Simulate a dataset with correlated measures
spc Print a character a specified number of times.
standardize Convert a numeric vector to Z-scores.
Substitute Convert objects as arguments to object names
summarise.r.datasets Summarise the dimensions and type of available R example datasets
textogram Make an ascii histogram in the console.
timeit Times an expression, with breakdown of time spent in each function
toheader Return a string with each first letter of each word in upper case.
top Monitor CPU, RAM and Processes
Unlist Unlist a list, starting only from a set depth.
wait Wait for a period of time.