Learn R Programming

automerge (version 0.4.0)

names.am_doc: Get names from document root

Description

Returns the keys from the root map of an Automerge document.

Usage

# S3 method for am_doc
names(x)

Value

Character vector of key names

Arguments

x

An Automerge document

Examples

Run this code
doc <- am_create()
doc$name <- "Alice"
doc$age <- 30L
names(doc)  # c("name", "age")
am_close(doc)

Run the code above in your browser using DataLab