fastMapUpdate: Modify a fastMap hash table.

Description Usage Arguments Details See Also Examples

View source: R/fastMapUpdate.R

Description

fastMapUpdate Update, add, or delete entries in the fastMap hash table. Adding and updating are the same; if a key does/doesn't exist, will set the key's value to value. If a lookup is made for a non-existant key, NULL will be returned; setting a key's value to NULL is essentially deleting. Before inserting into the hash table, convert all letters in value to upper case.

Usage

1
fastMapUpdate(hashTable, key, value)

Arguments

hashTable

The fastMap hash table.

key

The key to update.

value

The HGNC symbol to associate with key.

Details

TODO: Vectorize.

See Also

fastMapGenerate on how the hash table is structured. fastMapSanity on acceptable keys and values.

Other fastMap functions: fastMapGenerate, fastMapSanity, fastMap

Examples

1
2
3
4
5
## Not run: 
fastMapUpdate(fastMapUniprot, "P01023", "A2M")
fastMapUpdate(fastMapENSP, "ENSP00000245105", "a2m-as1")

## End(Not run)

hyginn/ekplektoR documentation built on May 17, 2019, 9:16 p.m.