Package: container 1.0.4

container: Extending Base 'R' Lists

Extends the functionality of base 'R' lists and provides specialized data structures 'deque', 'set', 'dict', and 'dict.table', the latter to extend the 'data.table' package.

Authors:Roman Pahl [aut, cre]

container_1.0.4.tar.gz
container_1.0.4.zip(r-4.5)container_1.0.4.zip(r-4.4)container_1.0.4.zip(r-4.3)
container_1.0.4.tgz(r-4.4-any)container_1.0.4.tgz(r-4.3-any)
container_1.0.4.tar.gz(r-4.5-noble)container_1.0.4.tar.gz(r-4.4-noble)
container_1.0.4.tgz(r-4.4-emscripten)container_1.0.4.tgz(r-4.3-emscripten)
container.pdf |container.html
container/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/rpahl/container/issues

On CRAN:

6.78 score 15 stars 134 scripts 406 downloads 1 mentions 81 exports 2 dependencies

Last updated 1 years agofrom:b47ef11aae. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 23 2024
R-4.5-winNOTENov 23 2024
R-4.5-linuxNOTENov 23 2024
R-4.4-winOKNov 23 2024
R-4.4-macOKNov 23 2024
R-4.3-winOKNov 23 2024
R-4.3-macOKNov 23 2024

Exports:addaddleftas.contas.containeras.dequeas.dictas.dict.tableas.orderedsetas.setatat2beginclearclonecontcontainerContainercontainer_optionscountdeletedelete_atdequeDequedictDictdict.tablediscarddiscard_atemptyget_nextget_valuegetContainerOptionhashas_namehas_nexthas_valueis_emptyis.containeris.dequeis.dictis.dict.tableis.iterableis.iteratoris.orderedsetis.setiterIteratorkeysnext_iterOrderedSetpeekpeek_atpeek_at2peekleftposref_addref_addleftref_clearref_deleteref_delete_atref_discardref_discard_atref_popref_popleftref_renameref_replaceref_replace_atref_revref_rotateref_updaterenamereplacereplace_atreset_iterrotateSetsetnewsizesortkeyunpackvalues

Dependencies:data.tableR6

Container operations for robust code

Rendered fromcode-development.Rmdusingknitr::rmarkdownon Nov 23 2024.

Last update: 2022-12-05
Started: 2021-11-03

Deque, Set, and Dict

Rendered fromdeque-set-dict.Rmdusingknitr::rmarkdownon Nov 23 2024.

Last update: 2022-12-05
Started: 2021-11-03

Introduction to container

Rendered fromcontainer.Rmdusingknitr::rmarkdownon Nov 23 2024.

Last update: 2022-12-05
Started: 2021-10-25

Manage data columns with dict.table

Rendered frommanage-data-columns.Rmdusingknitr::rmarkdownon Nov 23 2024.

Last update: 2022-12-05
Started: 2021-11-03

Manage parameter lists with dict

Rendered fromparameter-list.Rmdusingknitr::rmarkdownon Nov 23 2024.

Last update: 2022-12-05
Started: 2021-11-03

Reference semantics

Rendered fromreference-semantics.Rmdusingknitr::rmarkdownon Nov 23 2024.

Last update: 2022-12-05
Started: 2021-11-03

Readme and manuals

Help Manual

Help pageTopics
Add Elements to Containersadd add.Container add.Dict add.dict.table ref_add ref_add.Container ref_add.Dict ref_add.dict.table
Add Elements to the Left of Dequesaddleft addleft.Deque ref_addleft ref_addleft.Deque
Extract Elements Safelyat at.Container at.dict.table
Extract Single Elements Safelyat2 at2.Container at2.dict.table
Clear a Containerclear clear.Container clear.dict.table ref_clear ref_clear.Container ref_clear.dict.table
Clone an Objectclone clone.Container clone.dict.table
Container ClassContainer
Set Container Package Optionscontainer_options getContainerOption
Container - Enhancing R's listas.cont as.container as.list.Container cont container ContainerS3 is.container length.Container names.Container names<-.Container
Count Elementscount count.Container count.Set
Delete Container Elements Safelydelete delete.Container ref_delete ref_delete.Container
Delete Elements at Indices Safelydelete_at delete_at.Container delete_at.dict.table ref_delete_at ref_delete_at.Container ref_delete_at.dict.table
Deprecated Functionsdeprecated empty empty.Container keys size size.Container sortkey sortkey.Dict values values.Container values.dict.table
Deque ClassDeque
Deque - Double-Ended Queueas.deque deque DequeS3 is.deque
Dict ClassDict
Combining Dict and data.tableas.dict.table as.dict.table.data.table cbind.dict.table dict.table is.dict.table rbind.dict.table
A Dictionaryas.dict dict DictS3 is.dict
Discard Container Elementsdiscard discard.Container ref_discard ref_discard.Container
Discard Elements at Indicesdiscard_at discard_at.Container discard_at.dict.table ref_discard_at ref_discard_at.Container ref_discard_at.dict.table
Check for Elementhas has.Container has.dict.table
Check for Namehas_name has_name.Container has_name.dict.table
Check if Object is Emptyis_empty is_empty.Container is_empty.dict.table
Iterable abstract class interfaceIterable
Iterator ClassIterator
Iterate over Sequencesbegin get_next get_value has_next has_value is.iterable is.iterator iter iter.Container iter.default iterS3 length.Iterator next_iter pos reset_iter
Arithmetic Operators+.Container +.Deque +.Dict +.Set -.Container -.Deque -.Dict -.Set OpsArithmetic
Comparison Operators!=.Container <.Container <=.Container ==.Container >.Container >=.Container OpsCompare
Extract Parts of a Container ObjectOpsExtract [.Container [[.Container
Logic Operators&.Dict &.Set OpsLogic |.Dict |.Set
Replace Parts of a Container$<-.Container OpsReplace [<-.Container [[<-.Container
OrderedSet ClassOrderedSet
Peek at Left or Right of a Dequepeek peek.Deque peekleft peekleft.Deque
Peek at Indicespeek_at peek_at.Container peek_at.dict.table
Peek at Single Indexpeek_at2 peek_at2.Container peek_at2.dict.table
Get and Remove Elementpop ref_pop ref_pop.Container ref_pop.Deque ref_pop.dict.table ref_popleft ref_popleft.Deque
Rename Elements Safelyref_rename ref_rename.dict.table rename rename.Container rename.default rename.dict.table
Replace Values in Containers Safelyref_replace ref_replace.Container ref_replace.Dict replace replace.Container replace.Dict
Replace Values at Indices Safelyref_replace_at ref_replace_at.Container ref_replace_at.dict.table replace_at replace_at.Container replace_at.dict.table
Reverse Elementsref_rev ref_rev.Deque rev rev.Deque
Rotate Elementsref_rotate ref_rotate.Deque rotate rotate.Deque
Set ClassSet
Set and ordered Setas.orderedset as.set is.orderedset is.set setnew SetS3
Unpack Nested Objectsunpack
Update Object with Elements from Another Objectref_update ref_update.Container ref_update.dict.table update update.Container update.dict.table update.list