gdata: Various R Programming Tools for Data Manipulation

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').

Install the latest version of this package by entering the following in R:
install.packages("gdata")
AuthorGregory R. Warnes, Ben Bolker, Gregor Gorjanc, Gabor Grothendieck, Ales Korosec, Thomas Lumley, Don MacQueen, Arni Magnusson, Jim Rogers, and others
Date of publication2015-07-04 09:51:58
MaintainerGregory R. Warnes <greg@warnes.net>
LicenseGPL-2
Version2.17.0

View on CRAN

Man pages

ans: Value of Last Evaluated Expression

Args: Describe Function Arguments

bindData: Bind two data frames into a multivariate data frame

case: Map elements of a vector according to the provided 'cases'

cbindX: Column-bind objects with different number of rows

centerText: Center Text Strings

combine: Combine R Objects With a Column Labeling the Source

ConvertMedUnits: Convert medical measurements between International Standard...

drop.levels: Drop unused factor levels

duplicated2: Determine Duplicate Elements

elem: Display Information about Elements in a Given Object

env: Describe All Loaded Environments

first: Return first or last element of an object

frameApply: Subset analysis on data frames

gdata-defunct: Defunct Functions in Package 'gdata'

gdata-package: Various R programming tools for data manipulation

getDateTimePart: Get date/time parts from date and time objects

humanReadable: Print Byte Size in Human Readable Format

installXLSXsupport: Install perl modules needed for read.xls to support Excel...

interleave: Interleave Rows of Data Frames or Matrices

is.what: Run Multiple is.* Tests on a Given Object

keep: Remove All Objects, Except Those Specified

left: Return the leftmost or rightmost columns of a matrix or...

ll: Describe Objects or Elements

ls.funs: List function objects

mapLevels: Mapping levels

matchcols: Select columns names matching certain critera

MedUnits: Table of conversions between Intertional Standard (SI) and US...

nobs: Compute the Number of Non-missing Observations

nPairs: Number of variable pairs

object.size: Report the Space Allocated for Objects

read.xls: Read Excel files

rename.vars: Remove or rename variables in a dataframe

reorder: Reorder the Levels of a Factor

resample: Consistent Random Samples and Permutations

sheetCount: Count or list sheet names in Excel spreadsheet files.

startsWith: Determine if a character string "starts with" with the...

trim: Remove leading and trailing spaces from character strings

trimSum: Trim a vector such that the last/first value represents the...

unknown: Change unknown values to NA and vice versa

unmatrix: Convert a matrix into a vector, with appropriate names

upperTriangle: Extract or replace the upper/lower triangular portion of a...

wideByFactor: Create multivariate data by a given factor

write.fwf: Write object in fixed width format

xlsFormats: Check which file formats are supported by read.xls

Functions

aggregate.table Man page
ans Man page
Args Man page
as.levelsMap Man page
as.listLevelsMap Man page
as.object_sizes Man page
bindData Man page
case Man page
cbindX Man page
centerText Man page
.checkLevelsMap Man page
.checkListLevelsMap Man page
c.levelsMap Man page
c.listLevelsMap Man page
c.object_sizes Man page
combine Man page
ConvertMedUnits Man page
drop.levels Man page
duplicated2 Man page
elem Man page
env Man page
first Man page
format.object_sizes Man page
frameApply Man page
gdata Man page
gdata-package Man page
getDateTimeParts Man page
getDay Man page
getDay.Date Man page
getDay.default Man page
getDay.POSIXct Man page
getDay.POSIXlt Man page
getHour Man page
getHour.default Man page
getMin Man page
getMin.default Man page
getMonth Man page
getMonth.Date Man page
getMonth.default Man page
getMonth.POSIXct Man page
getMonth.POSIXlt Man page
getSec Man page
getSec.default Man page
getYear Man page
getYear.Date Man page
getYear.default Man page
getYear.POSIXct Man page
getYear.POSIXlt Man page
humanReadable Man page
installXLSXsupport Man page
interleave Man page
is.levelsMap Man page
is.listLevelsMap Man page
is.object_sizes Man page
isUnknown Man page
isUnknown.data.frame Man page
isUnknown.default Man page
isUnknown.list Man page
isUnknown.matrix Man page
isUnknown.POSIXlt Man page
is.what Man page
keep Man page
last Man page
left Man page
"[.levelsMap" Man page
"[.listLevelsMap" Man page
ll Man page
lowerTriangle Man page
lowerTriangle<- Man page
ls.funs Man page
mapLevels Man page
mapLevels<- Man page
mapLevels<-.character Man page
mapLevels.character Man page
mapLevels<-.data.frame Man page
mapLevels.data.frame Man page
mapLevels<-.default Man page
mapLevels.default Man page
mapLevels<-.factor Man page
mapLevels.factor Man page
mapLevels<-.list Man page
mapLevels.list Man page
matchcols Man page
MedUnits Man page
NAToUnknown Man page
NAToUnknown.data.frame Man page
NAToUnknown.default Man page
NAToUnknown.factor Man page
NAToUnknown.list Man page
nobs Man page
nobs.data.frame Man page
nobs.default Man page
nobs.lm Man page
nPairs Man page
object.size Man page
print.levelsMap Man page
print.listLevelsMap Man page
print.object_sizes Man page
read.xls Man page
remove.vars Man page
rename.vars Man page
reorder.factor Man page
resample Man page
right Man page
sheetCount Man page
sheetNames Man page
sort.levelsMap Man page
startsWith Man page
trim Man page
trimSum Man page
unique.levelsMap Man page
unknownToNA Man page
unknownToNA.data.frame Man page
unknownToNA.default Man page
unknownToNA.factor Man page
unknownToNA.list Man page
unmatrix Man page
upperTriangle Man page
upperTriangle<- Man page
wideByFactor Man page
write.fwf Man page
xls2csv Man page
xls2sep Man page
xls2tab Man page
xls2tsv Man page
xlsFormats Man page

Files

inst
inst/xls
inst/xls/ExampleExcelFile_1904.xls
inst/xls/latin-1.xlsx
inst/xls/ExampleExcelFile_1900.xls
inst/xls/ExampleExcelFile_1900.xlsx
inst/xls/latin-1.xls
inst/xls/ExampleExcelFile_1904.xlsx
inst/xls/iris.xls
inst/xls/ExampleExcelFile.xls
inst/xls/wide.xls
inst/xls/wide.xlsx
inst/xls/ExampleExcelFile.xlsx
inst/perl
inst/perl/sheetNames.pl
inst/perl/sheetCount.pl
inst/perl/XML
inst/perl/XML/Twig.pm
inst/perl/XML/Twig
inst/perl/XML/Twig/XPath.pm
inst/perl/xls2tab.pl
inst/perl/xls2csv.pl
inst/perl/xls2tsv.pl
inst/perl/Digest
inst/perl/Digest/Perl
inst/perl/Digest/Perl/MD5.pm
inst/perl/OLE
inst/perl/OLE/README-OLE-Storage_Lite
inst/perl/OLE/Storage_Lite.pm
inst/perl/module_tools.pl
inst/perl/IO
inst/perl/IO/AtomicFile.pm
inst/perl/IO/Wrap.pm
inst/perl/IO/InnerFile.pm
inst/perl/IO/Scalar.pm
inst/perl/IO/Lines.pm
inst/perl/IO/WrapTie.pm
inst/perl/IO/Scalar.pm.html
inst/perl/IO/ScalarArray.pm
inst/perl/IO/Stringy.pm
inst/perl/Spreadsheet
inst/perl/Spreadsheet/ParseExcel
inst/perl/Spreadsheet/ParseExcel/FmtDefault.pm
inst/perl/Spreadsheet/ParseExcel/Workbook.pm
inst/perl/Spreadsheet/ParseExcel/SaveParser.pm
inst/perl/Spreadsheet/ParseExcel/Format.pm
inst/perl/Spreadsheet/ParseExcel/Utility.pm
inst/perl/Spreadsheet/ParseExcel/Dump.pm
inst/perl/Spreadsheet/ParseExcel/FmtJapan2.pm
inst/perl/Spreadsheet/ParseExcel/Worksheet.pm
inst/perl/Spreadsheet/ParseExcel/Cell.pm
inst/perl/Spreadsheet/ParseExcel/SaveParser
inst/perl/Spreadsheet/ParseExcel/SaveParser/Workbook.pm
inst/perl/Spreadsheet/ParseExcel/SaveParser/Worksheet.pm
inst/perl/Spreadsheet/ParseExcel/Font.pm
inst/perl/Spreadsheet/ParseExcel/FmtUnicode.pm
inst/perl/Spreadsheet/ParseExcel/FmtJapan.pm
inst/perl/Spreadsheet/README-ParseExcel
inst/perl/Spreadsheet/ParseXLSX.pm
inst/perl/Spreadsheet/ParseExcel.pm
inst/perl/Spreadsheet/README-XLS
inst/perl/Archive
inst/perl/Archive/README-Archive-Zip
inst/perl/Archive/Zip.pm
inst/perl/Archive/Zip
inst/perl/Archive/Zip/Archive.pm
inst/perl/Archive/Zip/BufferedFileHandle.pm
inst/perl/Archive/Zip/ZipFileMember.pm
inst/perl/Archive/Zip/NewFileMember.pm
inst/perl/Archive/Zip/FileMember.pm
inst/perl/Archive/Zip/StringMember.pm
inst/perl/Archive/Zip/FAQ.pod
inst/perl/Archive/Zip/Tree.pm
inst/perl/Archive/Zip/MemberRead.pm
inst/perl/Archive/Zip/DirectoryMember.pm
inst/perl/Archive/Zip/MockFileHandle.pm
inst/perl/Archive/Zip/Member.pm
inst/perl/supportedFormats.pl
inst/perl/Graphics
inst/perl/Graphics/ColorUtils.pm
inst/perl/VERSIONS
inst/perl/install_modules.pl
inst/perl/Crypt
inst/perl/Crypt/RC4.pm
inst/NEWS
inst/bin
inst/bin/xls2csv.bat
inst/bin/xls2csv
inst/ChangeLog
inst/doc
inst/doc/unknown.Rnw
inst/doc/Rnews.sty
inst/doc/unknown.pdf
inst/doc/unknown.R
inst/doc/gregmisc.tex
inst/doc/mapLevels.Rnw
inst/doc/gregmisc.pdf
inst/doc/mapLevels.R
inst/doc/mapLevels.pdf
tests
tests/runRUnitTests.R
tests/test.read.xls.Rout.save
tests/tests.write.fwf.R tests/test.read.xls.R tests/test.humanReadable.R tests/test.reorder.factor.R tests/test.write.fwf.eol.R
tests/test.humanReadable.Rout.save
tests/test.reorder.factor.Rout.save
tests/tests.write.fwf.Rout.save
tests/unitTests
tests/unitTests/Makefile
tests/unitTests/runit.unknown.R tests/unitTests/runit.trimSum.R tests/unitTests/runit.bindData.R
tests/unitTests/report.html
tests/unitTests/runit.trim.R
tests/unitTests/report.txt
tests/unitTests/runit.cbindX.R tests/unitTests/runit.nPairs.R tests/unitTests/runit.write.fwf.R tests/unitTests/runit.getDateTimeParts.R tests/unitTests/runit.wideByFactor.R tests/unitTests/runit.mapLevels.R tests/unitTests/runit.drop.levels.R tests/unitTests/runit.reorder.factor.R
NAMESPACE
INSTALL
data
data/MedUnits.rda
R
R/is.what.R R/first.R R/interleave.R R/reorder.R R/combine.R R/read.xls.R R/case.R R/xls2sep.R R/duplicated2.R R/left.R R/upperTriangle.R R/unknown.R R/onAttach.R R/ConvertMedUnits.R R/env.R R/resample.R R/bindData.R R/drop.levels.R R/findPerl.R R/unmatrix.R R/write.fwf.R R/sheetCount.R R/trimSum.R R/nobs.R R/installXLSXsupport.R R/getDateTimeParts.R R/xlsFormats.R R/frameApply.R R/wideByFactor.R R/mapLevels.R R/trim.R R/ls.funs.R R/keep.R R/centerText.R R/ll.R R/elem.R R/cbindX.R R/rename.vars.R R/humanReadable.R R/matchcols.R R/nPairs.R R/startsWith.R R/object.size.R R/Args.R R/ans.R
vignettes
vignettes/unknown.Rnw
vignettes/Rnews.sty
vignettes/mapLevels.Rnw
MD5
build
build/vignette.rds
DESCRIPTION
man
man/getDateTimePart.Rd man/xlsFormats.Rd man/ConvertMedUnits.Rd man/matchcols.Rd man/interleave.Rd man/write.fwf.Rd man/is.what.Rd man/sheetCount.Rd man/elem.Rd man/nPairs.Rd man/combine.Rd man/keep.Rd man/env.Rd man/installXLSXsupport.Rd man/ls.funs.Rd man/centerText.Rd man/nobs.Rd man/first.Rd man/ll.Rd man/unmatrix.Rd man/reorder.Rd man/case.Rd man/mapLevels.Rd man/gdata-package.Rd man/read.xls.Rd man/drop.levels.Rd man/gdata-defunct.Rd man/ans.Rd man/resample.Rd man/Args.Rd man/unknown.Rd man/startsWith.Rd man/bindData.Rd man/rename.vars.Rd man/trim.Rd man/trimSum.Rd man/left.Rd man/upperTriangle.Rd man/wideByFactor.Rd man/frameApply.Rd man/object.size.Rd man/cbindX.Rd man/humanReadable.Rd man/MedUnits.Rd man/duplicated2.Rd
.Rinstignore

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.