| am_values | R Documentation |
Returns all values from an Automerge map or list as an R list.
am_values(doc, obj)
doc |
An Automerge document |
obj |
An Automerge object ID, or |
R list of values
doc <- am_create()
am_put(doc, AM_ROOT, "a", 1)
am_put(doc, AM_ROOT, "b", 2)
am_put(doc, AM_ROOT, "c", 3)
values <- am_values(doc, AM_ROOT)
values # list(1, 2, 3)
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.