Learn R Programming

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

gdata (version 2.19.0)

Various R Programming Tools for Data Manipulation

Description

Various R programming tools for data manipulation, including medical unit conversions, combining objects, character vector operations, factor manipulation, obtaining information about R objects, manipulating MS-Excel formatted files, generating fixed-width format files, extracting components of date & time objects, operations on columns of data frames, matrix operations, operations on vectors, operations on data frames, value of last evaluated expression, and a resample() wrapper for sample() that ensures consistent behavior for both scalar and vector arguments.

Copy Link

Version

Install

install.packages('gdata')

Monthly Downloads

55,865

Version

2.19.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 5th, 2023

Functions in gdata (2.19.0)

env

Describe All Loaded Environments
gdata-defunct

Defunct Functions in Package 'gdata'
gdata-package

Various R Programming Tools for Data Manipulation
humanReadable

Print Byte Size in Human Readable Format
duplicated2

Determine Duplicate Elements
first

Return first or last element of an object
getYear

Get date/time parts from date and time objects
matchcols

Select columns names matching certain critera
frameApply

Subset analysis on data frames
installXLSXsupport

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

Interleave Rows of Data Frames or Matrices
mv

Rename an Object
left

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

Describe Objects or Elements
is.what

Run Multiple is.* Tests on a Given Object
keep

Remove All Objects, Except Those Specified
startsWith

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

Remove leading and trailing spaces from character strings
object.size

Report the Space Allocated for Objects
read.xls

Read Excel files
sheetCount

Count or list sheet names in Excel spreadsheet files.
nobs

Compute the Number of Non-missing Observations
resample

Consistent Random Samples and Permutations
nPairs

Number of variable pairs
unknownToNA

Change unknown values to NA and vice versa
trimSum

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

Convert a matrix into a vector, with appropriate names
mapLevels

Mapping levels
ls.funs

List function objects
rename.vars

Remove or rename variables in a dataframe
xlsFormats

Check which file formats are supported by read.xls
write.fwf

Write object in fixed width format
reorder.factor

Reorder the Levels of a Factor
update.list

Update the elements of a list, or rows of a dataframe
wideByFactor

Create multivariate data by a given factor
upperTriangle

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

Bind two data frames into a multivariate data frame
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'
drop.levels

Drop unused factor levels
cbindX

Column-bind objects with different number of rows
Args

Describe Function Arguments
combine

Combine R Objects With a Column Labeling the Source
ans

Value of Last Evaluated Expression
ConvertMedUnits

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

Center Text Strings