| am_keys | R Documentation |
Returns a character vector of all keys in a map.
am_keys(doc, obj)
doc |
An Automerge document |
obj |
An Automerge object ID (must be a map), or |
Character vector of keys (empty if map is empty)
doc <- am_create()
am_put(doc, AM_ROOT, "a", 1)
am_put(doc, AM_ROOT, "b", 2)
keys <- am_keys(doc, AM_ROOT)
keys # c("a", "b")
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.