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

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

Files in this package

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

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

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