ropensci / taxlist

Handling taxonomic lists
https://docs.ropensci.org/taxlist/
12 stars 4 forks source link

ID generator... #24

Closed kamapu closed 1 year ago

kamapu commented 1 year ago

Unique identifiers are implemented in all slots in taxlist. Most of those IDs are managed as integer/numeric and appending new elements will be solved arithmetically (max(ID) + 1).

An exception is provided by the function backup_object(), which uses timestamp and suffixes.

Previous to implement character IDs and solve #23, we require two functions keeping consistency on IDs:

id_generator() creates new IDs:

id_solver() compare IDs of appended elements with the recipient object and re-assign IDs, when the are already in use.