Skip to content

Various R Programming Tools for Data Manipulation

Notifications You must be signed in to change notification settings

r-gregmisc/gdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRAN Status CRAN Monthly CRAN Total

gdata

Various R programming tools for data manipulation, including:

  • medical unit conversions (ConvertMedUnits, MedUnits),
  • combining objects (bindData, cbindX, combine, interleave),
  • character vector operations (centerText, startsWith, trim),
  • factor manipulation (levels, reorder.factor, mapLevels),
  • obtaining information about R objects (object_size, env, humanReadable, is.what, ll, keep, ls.funs, Args, nPairs, nobs),
  • generating fixed-width format files (write.fwf),
  • extracting components of date & time objects (getYear, getMonth, getDay, getHour, getMin, getSec),
  • operations on columns of data frames (matchcols, rename.vars),
  • matrix operations (unmatrix, upperTriangle, lowerTriangle),
  • operations on vectors (case, unknownToNA, duplicated2, trimSum),
  • operations on data frames (frameApply, wideByFactor),
  • value of last evaluated expression (ans), and
  • wrapper for sample that ensures consistent behavior for both scalar and vector arguments (resample).

Installation

The package can be installed from CRAN using the install.packages command:

install.packages("gdata")

Usage

For a summary of the package:

library(gdata)
?gdata

Development

The package is developed openly on GitHub.

Feel free to open an issue there if you encounter problems or have suggestions for future versions.

The current development version can be installed using:

library(remotes)
install_github("r-gregmisc/gdata")