Learn R Programming

gdata (version 3.0.1)

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, 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

53,889

Version

3.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 22nd, 2024

Functions in gdata (3.0.1)

bindData

Bind two data frames into a multivariate data frame
frameApply

Subset analysis on data frames
first

Return first or last element of an object
object_size

Report the Space Allocated for Objects
nobs

Compute the Number of Non-Missing Observations
case

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

Various R Programming Tools for Data Manipulation
gdata-defunct

Defunct Functions in Package 'gdata'
rename.vars

Remove or rename variables in a data frame
mv

Rename an Object
combine

Combine R Objects With a Column Labeling the Source
nPairs

Number of variable pairs
write.fwf

Write object to file in fixed width format
wideByFactor

Create multivariate data by a given factor
reorder.factor

Reorder the Levels of a Factor
getYear

Get date/time parts from date and time objects
left

Return the leftmost or rightmost columns of a matrix or data frame
trim

Remove leading and trailing spaces from character strings
keep

Remove All Objects, Except Those Specified
humanReadable

Print Byte Size in Human Readable Format
drop.levels

Drop unused factor levels
trimSum

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

Determine Duplicate Elements
interleave

Interleave Rows of Data Frames or Matrices
mapLevels

Mapping levels
matchcols

Select columns names matching certain critera
env

Describe All Loaded Environments
upperTriangle

Extract or replace the upper/lower triangular portion of a matrix
update.list

Update the elements of a list, or rows of a data frame
unknownToNA

Change unknown values to NA and vice versa
unmatrix

Convert a matrix into a vector, with appropriate names
is.what

Run Multiple is.* Tests on a Given Object
ll

Describe Objects or Elements
resample

Consistent Random Samples and Permutations
ls.funs

List function objects
startsWith

Does String Start or End With Another String?
cbindX

Column-bind objects with different number of rows
ans

Value of Last Evaluated Expression
ConvertMedUnits

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

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

Describe Function Arguments
centerText

Center Text Strings