Learn R Programming

⚠️There's a newer version (3.9.5) of this package.Take me there.

gtools (version 3.5.0)

Various R Programming Tools

Description

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.

Copy Link

Version

Install

install.packages('gtools')

Monthly Downloads

181,454

Version

3.5.0

License

GPL-2

Maintainer

the of this package were written by Gregory R. Warnes

Last Published

May 29th, 2015

Functions in gtools (3.5.0)

ELISA

Data from an ELISA assay
running

Apply a Function Over Adjacent Subsets of a Vector
quantcut

Create a Factor Variable Using the Quantiles of a Continuous Variable
rdirichlet

Functions for the Dirichlet Distribution
odd

Detect odd/even integers
loadedPackages

Provide Name, Version, and Path of Loaded Package Namespaces
binsearch

Binary Search
foldchange

Compute fold-change or convert between log-ratio and fold-change.
asc

Convert between characters and ASCII codes
defmacro

Define a macro
na.replace

Replace Missing Values
logit

Generalized logit and inverse logit function
smartbind

Efficient rbind of data frames, even if the column names don't match
permute

Randomly Permute the Elements of a Vector
ASCIIfy

Convert Characters to ASCII
stars.pval

Generate significance stars from p-values
getDependencies

Get package dependencies
gtools-deprecated

Deprecated Functions in the gtools package
scat

Display debugging text
lastAdd

Non-destructively construct a .Last function to be executed when R exits.
keywords

List valid keywords for R man pages
mixedsort

Order or Sort strings with embedded numbers so that the numbers are in the correct order
combinations

Enumerate the Combinations or Permutations of the Elements of a Vector
invalid

Test if a value is missing, empty, or contains only NA or NULL values
gtools-defunct

Defunct Functions in package gtools
setTCPNoDelay

Modify the TCP_NODELAY (`de-Nagle') flag for socket objects
ask

Display a prompt and collect the user's response
roman2int

Convert Roman Numerals to Integers
checkRVersion

Check if a newer version of R is available
unByteCode

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