Skip to contents

Combines the merge-template summary and downloadable template rows into a single convenience object and classifies whether the CMID is a merging template, whether variable mappings are present, and whether a link file can be downloaded.

Usage

findMergingTemplate(cmid, database = "SocioMap", url = NULL)

Arguments

cmid

A MERGING or STACK CMID.

database

A string specifying the database from which to retrieve the template. Valid options are "SocioMap" or "ArchaMap".

url

API URL override. If NULL, CATMAPR_API_URL is used when set, otherwise "https://api.catmapper.org".

Value

A list with status, summary, and template entries.

Examples

if (FALSE) { # \dontrun{
template_info <- findMergingTemplate(cmid = "AD354277", database = "ArchaMap")
template_info$status
} # }