gtools: Various R Programming Tools

Functions to assist in R programming, including: - assist in developing, updating, and maintaining R and R packages ('ask', 'checkRVersion', 'getDependencies', 'keywords', 'scat'), - calculate the logit and inverse logit transformations ('logit', 'inv.logit'), - test if a value is missing, empty or contains only NA and NULL values ('invalid'), - manipulate R's .Last function ('addLast'), - define macros ('defmacro'), - detect odd and even integers ('odd', 'even'), - convert strings containing non-ASCII characters (like single quotes) to plain ASCII ('ASCIIfy'), - perform a binary search ('binsearch'), - sort strings containing both numeric and character components ('mixedsort'), - create a factor variable from the quantiles of a continuous variable ('quantcut'), - enumerate permutations and combinations ('combinations', 'permutation'), - calculate and convert between fold-change and log-ratio ('foldchange', 'logratio2foldchange', 'foldchange2logratio'), - calculate probabilities and generate random numbers from Dirichlet distributions ('rdirichlet', 'ddirichlet'), - apply a function over adjacent subsets of a vector ('running'), - modify the TCP\_NODELAY ('de-Nagle') flag for socket objects, - efficient 'rbind' of data frames, even if the column names don't match ('smartbind'), - generate significance stars from p-values ('stars.pval'), - convert characters to/from ASCII codes.

Install the latest version of this package by entering the following in R:
AuthorGregory R. Warnes, Ben Bolker, and Thomas Lumley
Date of publication2015-05-29 10:36:40
MaintainerGregory R. Warnes <>

View on CRAN

Man pages

asc: Convert between characters and ASCII codes

ASCIIfy: Convert Characters to ASCII

ask: Display a prompt and collect the user's response

binsearch: Binary Search

checkRVersion: Check if a newer version of R is available

combinations: Enumerate the Combinations or Permutations of the Elements of...

defmacro: Define a macro

dirichlet: Functions for the Dirichlet Distribution

ELISA: Data from an ELISA assay

foldchange: Compute fold-change or convert between log-ratio and...

getDependencies: Get package dependencies

gtools-defunct: Defunct Functions in package 'gtools'

gtools-deprecated: Deprecated Functions in the gtools package

invalid: Test if a value is missing, empty, or contains only NA or...

keywords: List valid keywords for R man pages

lastAdd: Non-destructively construct a .Last function to be executed...

loadedPackages: Provide Name, Version, and Path of Loaded Package Namespaces

logit: Generalized logit and inverse logit function

mixedsort: Order or Sort strings with embedded numbers so that the...

na.replace: Replace Missing Values

oddeven: Detect odd/even integers

permute: Randomly Permute the Elements of a Vector

quantcut: Create a Factor Variable Using the Quantiles of a Continuous...

roman2int: Convert Roman Numerals to Integers

running: Apply a Function Over Adjacent Subsets of a Vector

scat: Display debugging text

setTCPNoDelay: Modify the TCP\_NODELAY ('de-Nagle') flag for socket objects

smartbind: Efficient rbind of data frames, even if the column names...

stars.pval: Generate significance stars from p-values

unByteCode: Convert a Byte-Code Function to an Interpreted-Code Function


addLast Man page
asc Man page
ASCIIfy Man page
ask Man page
assert Man page
assignEdgewise Man page
binsearch Man page
capture Man page
checkRVersion Man page
chr Man page
combinations Man page
ddirichlet Man page
defmacro Man page
ELISA Man page
even Man page
foldchange Man page
foldchange2logratio Man page
getDependencies Man page
gtools-defunct Man page
gtools-deprecated Man page
invalid Man page
inv.logit Man page
keywords Man page
lastAdd Man page
loadedPackages Man page
logit Man page
logratio2foldchange Man page
mixedorder Man page
mixedsort Man page
na.replace Man page
odd Man page
permutations Man page
permute Man page
quantcut Man page
rdirichlet Man page
roman2int Man page
running Man page
scat Man page
setTCPNoDelay Man page
smartbind Man page
sprint Man page
stars.pval Man page
strmacro Man page
unByteCode Man page
unByteCodeAssign Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.