Learn R Programming

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

gdata (version 2.16.1)

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

35,263

Version

2.16.1

License

GPL-2

Maintainer

the of this package were written by Gregory R. Warnes

Last Published

May 1st, 2015

Functions in gdata (2.16.1)

rename.vars

Remove or rename variables in a dataframe
gdata-defunct

Defunct Functions in Package 'gdata'
read.xls

Read Excel files
humanReadable

Print Byte Size in Human Readable Format
ls.funs

List function objects
duplicated2

Determine Duplicate Elements
is.what

Run Multiple is.* Tests on a Given Object
sheetCount

Count or list sheet names in Excel spreadsheet files.
unknownToNA

Change unknown values to NA and vice versa
nPairs

Number of variable pairs
cbindX

Column-bind objects with different number of rows
keep

Remove All Objects, Except Those Specified
write.fwf

Write object in fixed width format
upperTriangle

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

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

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

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

Report the Space Allocated for Objects
xlsFormats

Check which file formats are supported by read.xls
nobs

Compute the Number of Non-missing Observations
reorder.factor

Reorder the Levels of a Factor
bindData

Bind two data frames into a multivariate data frame
getYear

Get date/time parts from date and time objects
unmatrix

Convert a matrix into a vector, with appropriate names
installXLSXsupport

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

Describe Function Arguments
wideByFactor

Create multivariate data by a given factor
centerText

Center Text Strings
drop.levels

Drop unused factor levels
ConvertMedUnits

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

Value of Last Evaluated Expression
elem

Display Information about Elements in a Given Object
ll

Describe Objects or Elements
trim

Remove leading and trailing spaces from character strings
resample

Consistent Random Samples and Permutations
case

Map elements of a vector according to the provided 'cases'
gdata-package

Various R programming tools for data manipulation
left

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

Combine R Objects With a Column Labeling the Source
frameApply

Subset analysis on data frames
env

Describe All Loaded Environments
mapLevels

Mapping levels
first

Return first or last element of an object
interleave

Interleave Rows of Data Frames or Matrices
matchcols

Select columns names matching certain critera