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 ('asc', 'chr'), - convert character vector to ASCII representation ('ASCIIfy'), - apply title capitalization rules to a character vector ('capwords').


gtools R package

Project Status: Active - The project has reached a stable, usablestate and is being activelydeveloped. R-CMD-check CRAN RStudio mirrordownloads

The gtools R package provides 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 dont match (smartbind`),
  • generate significance stars from p-values (stars.pval),
  • convert characters to/from ASCII codes (asc, chr),
  • convert character vector to ASCII representation (ASCIIfy).
  • apply title capitalization rules to a character vector (capwords)

Installation

You can install the released version of gtools from CRAN with:

install.packages("gtools")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("r-gregmisc/gtools")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gtools")

3.9.5 by Ben Bolker, 3 years ago


https://github.com/r-gregmisc/gtools


Report a bug at https://github.com/r-gregmisc/gtools/issues


Browse source code at https://github.com/cran/gtools


Authors: Gregory R. Warnes [aut] , Ben Bolker [aut, cre] , Thomas Lumley [aut] , Arni Magnusson [aut] , Bill Venables [aut] , Genei Ryodan [aut] , Steffen Moeller [aut] , Ian Wilson [ctb] , Mark Davis [ctb] , Nitin Jain [ctb] , Scott Chamberlain [ctb]


Documentation:   PDF Manual  


GPL-2 license


Depends on methods, stats, utils

Suggests car, gplots, knitr, rstudioapi, SGP, taxize


Imported by ASMap, AgeTopicModels, AgroR, AntibodyForests, AutoWMM, AuxSurvey, BAMBI, BSPBSS, BasketballAnalyzeR, BayesMultiMode, BradleyTerry2, CARBayesST, CCMnet, CeRNASeek, CimpleG, CoClust, CoImp, CoMiRe, ConsRank, ConsRankClass, CoopGame, EBMAforecast, ELAplus, EWSmethods, ExtremalDep, FAMetA, GenEst, HyperG, IBRtools, ItemRest, Kcop, LINselect, LRErdd, LikertMakeR, MALDIassist, MCARtest, MRPC, MSclust, MaOEA, MarkowitzR, MethodOpt, MosaiClusteR, MuViCP, MultiObjMatch, MultiSEp, NPCDTools, NSM3, OWEA, OofAExp, PKbioanalysis, PLMIX, PPbigdata, PSSMCOOL, PSW, PopED, QTLEMM, Qtools, Qval, RBE3, REQS, RI2by2, RRgeo, RankAggreg, ReDirection, ResistantProcrustes, RobMixReg, SFPL, SGP, SOHPIE, SSHAARP, STEPCAM, SensoMineR, ShapDoE, SimplicialComplex, SlimR, SparseLPM, TDCM, TML, TSANN, TUvalues, TcGSA, TiPS, VICatMix, VecDep, ZIDW, ZINAR1, adproclus, alpmixBayes, archiDART, atmopt, ausplotsR, autohrf, autostats, beezdiscounting, bikm1, binovisualfields, biometrics, bootCT, bootnet, bosfr, bpgmm, bumblebee, cancerradarr, cardinalR, caretSDM, cellGeometry, coalitions, codacore, colorrepel, combiroc, conStruct, crov, ctgimme, cv, dagHMM, dartR.base, didec, dirichletprocess, doseSens, dotsViolin, drc, dwp, eSIR, easylabel, econullnetr, ecospat, epicmodel, escalation, expSBM, factormodel, fastLink, fastTopics, finnts, forestGYM, frequency, fsemipar, gambin, gdata, ggInterval, gplots, grapesAgri1, graphPAF, hierfstat, hydraulics, iSTATS, iccmult, icensBKL, imputeMulti, inecolr, karyotapR, knockoff, lddmm, learnPopGen, lnmCluster, locuszoomr, lpmec, ltmix, marcher, marp, mau, mcMST, mgm, modeldiagramR, modnets, movieROC, mulset, mvtmeta, nardl, nima, noisySBM, nparMD, pacheck, pcsstools, phenopix, polySegratioMM, ppsbm, prepost, projpred, protHMM, qgraph, rankrate, rcompendium, rdtLite, ref.ICAR, regmed, reservoir, revpref, robnptests, rrMixture, rsyncrosim, shinystan, simglm, smimodel, spANOVA, spqdep, ss3sim, ssifs, staRdom, starvz, stockR, survML, svs, symbolicr, textmineR, tidylda, tigger, tirt, trialr, uwedragon, validata, visualFields, votesys, xhaz, zoid.

Depended on by GSM, GameTheory, HUM, IDPSurvival, KQM, MKMeans, MasterBayes, MetabolAnalyze, NonParRolCor, PANPRSnext, PRECAST, PairViz, ProFAST, RolWinMulCor, Ultimixt, collpcm, crossdes, dice, genetics, integr, modMax, mrfse, ordinalpattern, qeML, regtools, rmpw, rvHPDT, sensory.

Suggested by CoDaLoMic, CohortPlat, EDCimport, GLMcat, HistData, LSAmitR, Pv3Rs, QFASA, R.filesets, RelativeDistClust, SFOCDs, SUSY, abwm, cats, cia, codalm, delimtools, epigraphdb, fdapace, formods, gmodels, idiogramFISH, inferCSN, lcra, mdw, partition, psfmi, r4ss, radviz3d, rattle, sensitivity, vhica, wompwomp.


See at CRAN