Create fake text for testing purposes
Print out comma separated list of values in X, truncating if many (good for error messages)
Simulate a correlated variable
Split a text file into multiple parts
Does object exist ignoring functions
The exists() function can tell you whether an object exists
at all, or whether an object exists with a certain type, but
it can be useful to know whether an object exists as genuine
data (and not a function) which can be important when a variable
or object is accidently or intentionally given the same name as
a function. This function usually returns a logical value as to
the existence of the object (ignoring functions) but can also
be set to return the non-function type if the object exists.
Extend an interval by percentage
Estimate the memory required for an object.
Obtain an index of all instances of values with duplicates (ordered)
Determine robustly whether a vector contains logical data
Determine whether a function can be applied to an S4 class/object
Show all functions used in an R script file, by package
Force argument to be a percentage with length one
Return up to 22 distinct colours.
Create variables from a list
Check whether a given system command is installed (e.g, bash)
Function to add commas for large numbers
A good way to preview large lists.
Draw a scatterplot with a fit line
Determine robustly whether a vector contains numeric data
Easily display fraction and percentages
Creates a progess bar within a loop
Do everything possible to load an R package.
Summary of RAM footprint for all R objects in the current session.
Not my function, but taken from an R-Help response by Elizabeth Purdom,
at Berkeley. Simply applies the function 'object.size' to the objects
in ls(). Also very similar to an example in the 'Help' for the
utils::object.size() function.
Convert p-values to Z-scores
Force argument to be a numeric type with length one
Output variable states within functions/loops during testing/debugging
Output variable states within functions during testing/debugging
Posterior probability of association function
Find data thresholds corresponding to percentiles
Simulate a dataset with correlated measures
Detect all available R repositories.
Search all CRAN packages for those containing keyword(s).
Print a character a specified number of times.
Remove names from a named vector or list
Simple representation and retrieval of Date/Time
Remove leading and trailing spaces (or other character).
Print a vector with appropriate padding so each has equal char length.
Check whether a set of packages has been loaded
Convert a numeric vector to Z-scores.
Return an object with missing values removed.
Select the nearest point in an array to a given value
Wrapper for the base table() function that includes
zero counts - useful to get consistent dimensions across
multiple runs with different responding patterns
Forces a 2d table with every possible cell (allow zero counts)
Only for tables where there are two vectors entered, while
the base function allows for more, or also allows just 1.
If the wrong arguments are entered, attempts to pass the input
to the base version of 'table' instead.
Descriptive summary with SD/SE + improved formatting
Make an ascii histogram in the console.
Tidy display function for matrix objects
Iterate through numeric columns of a dataframe and replace missing with the mean
Times an expression, with breakdown of time spent in each function
!DEPRECATED October 14, 2022!
Monitor CPU, RAM and Processes
Return a string with each first letter of each word in upper case.
Wait for a period of time.
Summarise the dimensions and type of available R example datasets
Return vector indexes of statistical univariate outliers
Convert Z-scores to p-values
Miscellaneous Functions for Creating Adaptive Functions and Scripts
Find the mode of a vector.
A more general dimension function
Unlist a list, starting only from a set depth.
Convert objects as arguments to object names
Print heading text with a border.
Create an index file for an R function file
Convert all possible columns of a data.frame to numeric
Internal NCmisc Functions