| am_delete | R Documentation |
Removes a key-value pair from a map or an element from a list.
am_delete(doc, obj, key)
doc |
An Automerge document |
obj |
An Automerge object ID (from nested object), or |
key |
For maps: character string key to delete. For lists: numeric index (1-based, like R vectors) to delete |
The document doc (invisibly)
doc <- am_create()
am_put(doc, AM_ROOT, "temp", "value")
am_delete(doc, AM_ROOT, "temp")
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.