Package: gdata 3.0.1

Arni Magnusson

gdata: Various R Programming Tools for Data Manipulation

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.

Authors:Gregory R. Warnes [aut], Gregor Gorjanc [aut], Arni Magnusson [aut, cre], Liviu Andronic [aut], Jim Rogers [aut], Don MacQueen [aut], Ales Korosec [aut], Ben Bolker [ctb], Michael Chirico [ctb], Gabor Grothendieck [ctb], Thomas Lumley [ctb], Brian Ripley [ctb], inoui llc [fnd]

gdata_3.0.1.tar.gz
gdata_3.0.1.zip(r-4.5)gdata_3.0.1.zip(r-4.4)gdata_3.0.1.zip(r-4.3)
gdata_3.0.1.tgz(r-4.4-any)gdata_3.0.1.tgz(r-4.3-any)
gdata_3.0.1.tar.gz(r-4.5-noble)gdata_3.0.1.tar.gz(r-4.4-noble)
gdata_3.0.1.tgz(r-4.4-emscripten)gdata_3.0.1.tgz(r-4.3-emscripten)
gdata.pdf |gdata.html
gdata/json (API)
NEWS

# Install 'gdata' in R:
install.packages('gdata', repos = c('https://r-gregmisc.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-gregmisc/gdata/issues

Datasets:
  • MedUnits - Table of conversions between Intertional Standard (SI) and US 'Conventional' Units for common medical measurements.

On CRAN:

13.73 score 9 stars 120 packages 4.5k scripts 61k downloads 47 mentions 65 exports 1 dependencies

Last updated 2 months agofrom:bf5fd4114e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-winOKNov 21 2024
R-4.5-linuxOKNov 21 2024
R-4.4-winOKNov 21 2024
R-4.4-macOKNov 21 2024
R-4.3-winOKNov 21 2024
R-4.3-macOKNov 21 2024

Exports:ansArgsas.levelsMapas.listLevelsMapas.object_sizesbindDatacasecbindXcenterTextcombineConvertMedUnitsdrop.levelsduplicated2envfirstfirst<-frameApplygetDaygetHourgetMingetMonthgetSecgetYearhumanReadableinterleaveis.levelsMapis.listLevelsMapis.object_sizesis.whatisUnknownkeeplastlast<-leftlllowerTrianglelowerTriangle<-ls.funsmapLevelsmapLevels<-matchcolsmvn_obsNAToUnknownnobsnPairsobject_sizeobject.sizeremove.varsrename.varsreorder.factorresamplerightstarts_withstartsWithtrimtrimSumunknownToNAunmatrixupdate.data.frameupdate.listupperTriangleupperTriangle<-wideByFactorwrite.fwf

Dependencies:gtools

Mapping levels of a factor

Rendered frommapLevels.Rnwusingutils::Sweaveon Nov 21 2024.

Last update: 2023-04-07
Started: 2023-04-05

Working with Unknown Values

Rendered fromunknown.Rnwusingutils::Sweaveon Nov 21 2024.

Last update: 2023-04-07
Started: 2023-04-05

Readme and manuals

Help Manual

Help pageTopics
Various R Programming Tools for Data Manipulationgdata-package gdata
Value of Last Evaluated Expressionans
Describe Function ArgumentsArgs
Bind two data frames into a multivariate data framebindData
Map elements of a vector according to the provided 'cases'case
Column-bind objects with different number of rowscbindX
Center Text StringscenterText
Combine R Objects With a Column Labeling the Sourcecombine
Convert medical measurements between International Standard (SI) and US 'Conventional' Units.ConvertMedUnits
Drop unused factor levelsdrop.levels
Determine Duplicate Elementsduplicated2
Describe All Loaded Environmentsenv
Return first or last element of an objectfirst first<- last last<-
Subset analysis on data framesframeApply
Defunct Functions in Package 'gdata'aggregate.table
Get date/time parts from date and time objectsgetDateTimeParts getDay getDay.Date getDay.default getDay.POSIXct getDay.POSIXlt getHour getHour.default getMin getMin.default getMonth getMonth.Date getMonth.default getMonth.POSIXct getMonth.POSIXlt getSec getSec.default getYear getYear.Date getYear.default getYear.POSIXct getYear.POSIXlt
Print Byte Size in Human Readable FormathumanReadable
Interleave Rows of Data Frames or Matricesinterleave
Run Multiple is.* Tests on a Given Objectis.what
Remove All Objects, Except Those Specifiedkeep
Return the leftmost or rightmost columns of a matrix or data frameleft left.data.frame left.matrix right right.data.frame right.matrix
Describe Objects or Elementsll
List function objectsls.funs
Mapping levels"[.levelsMap" "[.listLevelsMap" .checkLevelsMap .checkListLevelsMap as.levelsMap as.listLevelsMap c.levelsMap c.listLevelsMap is.levelsMap is.listLevelsMap mapLevels mapLevels.character mapLevels.data.frame mapLevels.default mapLevels.factor mapLevels.list mapLevels<- mapLevels<-.character mapLevels<-.data.frame mapLevels<-.default mapLevels<-.factor mapLevels<-.list print.levelsMap print.listLevelsMap sort.levelsMap unique.levelsMap
Select columns names matching certain criteramatchcols
Table of conversions between Intertional Standard (SI) and US 'Conventional' Units for common medical measurements.MedUnits
Rename an Objectmv
Compute the Number of Non-Missing Observationsnobs nobs.data.frame nobs.default nobs.lm n_obs
Number of variable pairsnPairs
Report the Space Allocated for Objectsas.object_sizes c.object_sizes format.object_sizes is.object_sizes object.size object_size print.object_sizes
Remove or rename variables in a data frameremove.vars rename.vars
Reorder the Levels of a Factorreorder.factor
Consistent Random Samples and Permutationsresample
Does String Start or End With Another String?startsWith starts_with
Remove leading and trailing spaces from character stringstrim
Trim a vector such that the last/first value represents the sum of trimmed valuestrimSum
Change unknown values to NA and vice versaisUnknown isUnknown.data.frame isUnknown.default isUnknown.list isUnknown.matrix isUnknown.POSIXlt NAToUnknown NAToUnknown.data.frame NAToUnknown.default NAToUnknown.factor NAToUnknown.list unknownToNA unknownToNA.data.frame unknownToNA.default unknownToNA.factor unknownToNA.list
Convert a matrix into a vector, with appropriate namesunmatrix
Update the elements of a list, or rows of a data frameupdate.data.frame update.list
Extract or replace the upper/lower triangular portion of a matrixlowerTriangle lowerTriangle<- upperTriangle upperTriangle<-
Create multivariate data by a given factorwideByFactor
Write object to file in fixed width formatwrite.fwf