Miscellaneous Functions for Creating Adaptive Functions and Scripts
Check whether a given system command is installed (e.g, bash)
Function to add commas for large numbers
Print out comma separated list of values in X, truncating if many (goo...
Simulate a correlated variable
A more general dimension function
Obtain an index of all instances of values with duplicates (ordered)
Estimate the memory required for an object.
Does object exist ignoring functionsThe exists() function can tell you...
Extend an interval by percentage
Create fake text for testing purposes
Split a text file into multiple parts
Force argument to be a percentage with length one
Force argument to be a numeric type with length one
Return up to 22 distinct colours.
Detect all available R repositories.
Determine whether a function can be applied to an S4 class/object
Print heading text with a border.
A good way to preview large lists.
Determine robustly whether a vector contains logical data
Determine robustly whether a vector contains numeric data
Show all functions used in an R script file, by package
Create variables from a list
Draw a scatterplot with a fit line
Creates a progess bar within a loop
Summary of RAM footprint for all R objects in the current session. Not...
Find the mode of a vector.
Do everything possible to load an R package.
Return an object with missing values removed.
Internal NCmisc Functions
Miscellaneous Functions for Creating Adaptive Functions and Scripts
Select the nearest point in an array to a given value
Convert all possible columns of a data.frame to numeric
Easily display fraction and percentages
Convert p-values to Z-scores
Check whether a set of packages has been loaded
Print a vector with appropriate padding so each has equal char length.
Find data thresholds corresponding to percentiles
Posterior probability of association function
Output variable states within functions during testing/debugging
Tidy display function for matrix objects
Output variable states within functions/loops during testing/debugging
Iterate through numeric columns of a dataframe and replace missing wit...
Create an index file for an R function file
Remove names from a named vector or list
Remove leading and trailing spaces (or other character).
Search all CRAN packages for those containing keyword(s).
Simulate a dataset with correlated measures
Simple representation and retrieval of Date/Time
Print a character a specified number of times.
Convert a numeric vector to Z-scores.
Convert objects as arguments to object names
Summarise the dimensions and type of available R example datasets
Descriptive summary with SD/SE + improved formatting
Wrapper for the base table() function that includes zero counts - usef...
Make an ascii histogram in the console.
Times an expression, with breakdown of time spent in each function !DE...
Return a string with each first letter of each word in upper case.
Monitor CPU, RAM and Processes
Unlist a list, starting only from a set depth.
Wait for a period of time.
Return vector indexes of statistical univariate outliers
Convert Z-scores to p-values
A set of handy functions. Includes a versatile one line progress bar, one line function timer with detailed output, time delay function, text histogram, object preview, CRAN package search, simpler package installer, Linux command install check, a flexible Mode function, top function, simulation of correlated data, and more.