Learn R Programming

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

gdata (version 2.17.0)

Various R Programming Tools for Data Manipulation

Description

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', 'elem', 'env', 'humanReadable', 'is.what', 'll', 'keep', 'ls.funs', 'Args','nPairs', 'nobs'), - manipulating MS-Excel formatted files ('read.xls', 'installXLSXsupport', 'sheetCount', 'xlsFormats'), - generating fixed-width format files ('write.fwf'), - extricating 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').

Copy Link

Version

Install

install.packages('gdata')

Monthly Downloads

45,602

Version

2.17.0

License

GPL-2

Maintainer

the of this package were written by Gregory R. Warnes

Last Published

July 4th, 2015

Functions in gdata (2.17.0)

bindData

Bind two data frames into a multivariate data frame
gdata-defunct

Defunct Functions in Package 'gdata'
interleave

Interleave Rows of Data Frames or Matrices
getYear

Get date/time parts from date and time objects
elem

Display Information about Elements in a Given Object
cbindX

Column-bind objects with different number of rows
env

Describe All Loaded Environments
ConvertMedUnits

Convert medical measurements between International Standard (SI) and US 'Conventional' Units.
keep

Remove All Objects, Except Those Specified
resample

Consistent Random Samples and Permutations
object.size

Report the Space Allocated for Objects
wideByFactor

Create multivariate data by a given factor
sheetCount

Count or list sheet names in Excel spreadsheet files.
matchcols

Select columns names matching certain critera
startsWith

Determine if a character string "starts with" with the specified characters.
xlsFormats

Check which file formats are supported by read.xls
unmatrix

Convert a matrix into a vector, with appropriate names
drop.levels

Drop unused factor levels
humanReadable

Print Byte Size in Human Readable Format
ans

Value of Last Evaluated Expression
Args

Describe Function Arguments
combine

Combine R Objects With a Column Labeling the Source
is.what

Run Multiple is.* Tests on a Given Object
nPairs

Number of variable pairs
trimSum

Trim a vector such that the last/first value represents the sum of trimmed values
nobs

Compute the Number of Non-missing Observations
centerText

Center Text Strings
installXLSXsupport

Install perl modules needed for read.xls to support Excel 2007+ XLSX format
frameApply

Subset analysis on data frames
MedUnits

Table of conversions between Intertional Standard (SI) and US 'Conventional' Units for common medical measurements.
ll

Describe Objects or Elements
case

Map elements of a vector according to the provided 'cases'
duplicated2

Determine Duplicate Elements
gdata-package

Various R programming tools for data manipulation
upperTriangle

Extract or replace the upper/lower triangular portion of a matrix
trim

Remove leading and trailing spaces from character strings
rename.vars

Remove or rename variables in a dataframe
write.fwf

Write object in fixed width format
reorder.factor

Reorder the Levels of a Factor
read.xls

Read Excel files
first

Return first or last element of an object
ls.funs

List function objects
mapLevels

Mapping levels
left

Return the leftmost or rightmost columns of a matrix or dataframe
unknownToNA

Change unknown values to NA and vice versa