NCmisc1.2.0 package

Miscellaneous Functions for Creating Adaptive Functions and Scripts

check.linux.install

Check whether a given system command is installed (e.g, bash)

comify

Function to add commas for large numbers

comma.list

Print out comma separated list of values in X, truncating if many (goo...

cor.with

Simulate a correlated variable

Dim

A more general dimension function

dup.pairs

Obtain an index of all instances of values with duplicates (ordered)

estimate.memory

Estimate the memory required for an object.

exists.not.function

Does object exist ignoring functionsThe exists() function can tell you...

extend.pc

Extend an interval by percentage

fakeLines

Create fake text for testing purposes

file.split

Split a text file into multiple parts

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.

getRepositories

Detect all available R repositories.

has.method

Determine whether a function can be applied to an S4 class/object

Header

Print heading text with a border.

headl

A good way to preview large lists.

is.vec.logical

Determine robustly whether a vector contains logical data

is.vec.numeric

Determine robustly whether a vector contains numeric data

list.functions.in.file

Show all functions used in an R script file, by package

list.to.env

Create variables from a list

loess.scatter

Draw a scatterplot with a fit line

loop.tracker

Creates a progess bar within a loop

memory.summary

Summary of RAM footprint for all R objects in the current session. Not...

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-internal

Internal NCmisc Functions

NCmisc-package

Miscellaneous Functions for Creating Adaptive Functions and Scripts

nearest.to

Select the nearest point in an array to a given value

Numerify

Convert all possible columns of a data.frame to numeric

out.of

Easily display fraction and percentages

p.to.Z

Convert p-values to Z-scores

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

ppa

Posterior probability of association function

preview

Output variable states within functions during testing/debugging

prv.large

Tidy display function for matrix objects

prv

Output variable states within functions/loops during testing/debugging

replace.missing.df

Iterate through numeric columns of a dataframe and replace missing wit...

Rfile.index

Create an index file for an R function file

rmv.names

Remove names from a named vector or list

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

simple.date

Simple representation and retrieval of Date/Time

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

summary2

Descriptive summary with SD/SE + improved formatting

table2d

Wrapper for the base table() function that includes zero counts - usef...

textogram

Make an ascii histogram in the console.

timeit

Times an expression, with breakdown of time spent in each function !DE...

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.

which.outlier

Return vector indexes of statistical univariate outliers

Z.to.p

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.

  • Maintainer: Nicholas Cooper
  • License: GPL (>= 2)
  • Last published: 2022-10-17