Learn R Programming

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

gdata (version 2.18.0.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

55,865

Version

2.18.0.1

License

GPL-2

Last Published

May 10th, 2022

Functions in gdata (2.18.0.1)

duplicated2

Determine Duplicate Elements
gdata-defunct

Defunct Functions in Package 'gdata'
gdata-package

Various R programming tools for data manipulation
humanReadable

Print Byte Size in Human Readable Format
frameApply

Subset analysis on data frames
installXLSXsupport

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

Describe All Loaded Environments
getYear

Get date/time parts from date and time objects
elem

Display Information about Elements in a Given Object
first

Return first or last element of an object
mapLevels

Mapping levels
interleave

Interleave Rows of Data Frames or Matrices
left

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

Select columns names matching certain critera
keep

Remove All Objects, Except Those Specified
nPairs

Number of variable pairs
is.what

Run Multiple is.* Tests on a Given Object
nobs

Compute the Number of Non-missing Observations
object.size

Report the Space Allocated for Objects
rename.vars

Remove or rename variables in a dataframe
trimSum

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

Rename an Object
read.xls

Read Excel files
trim

Remove leading and trailing spaces from character strings
xlsFormats

Check which file formats are supported by read.xls
sheetCount

Count or list sheet names in Excel spreadsheet files.
resample

Consistent Random Samples and Permutations
unknownToNA

Change unknown values to NA and vice versa
reorder.factor

Reorder the Levels of a Factor
unmatrix

Convert a matrix into a vector, with appropriate names
ll

Describe Objects or Elements
ls.funs

List function objects
upperTriangle

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

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

Update the elements of a list
write.fwf

Write object in fixed width format
wideByFactor

Create multivariate data by a given factor
MedUnits

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

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

Value of Last Evaluated Expression
cbindX

Column-bind objects with different number of rows
drop.levels

Drop unused factor levels
centerText

Center Text Strings
Args

Describe Function Arguments
combine

Combine R Objects With a Column Labeling the Source
bindData

Bind two data frames into a multivariate data frame
ConvertMedUnits

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