add_metadata | R Documentation |
Supplement a supertibble with additional metadata fields
add_metadata(
supertbl,
db_metadata,
redcap_uri,
token,
suppress_redcapr_messages
)
supertbl |
a supertibble object to supplement with metadata |
db_metadata |
a REDCap metadata tibble |
redcap_uri |
The URI/URL of the REDCap server (e.g., "https://server.org/apps/redcap/api/"). Required. |
token |
The user-specific string that serves as the password for a project. Required. |
suppress_redcapr_messages |
A logical to control whether to suppress messages
from REDCapR API calls. Default |
This function assumes that db_metadata
has been processed to
include a row for each option of each multiselection field, i.e. with
update_field_names()
The original supertibble with additional fields:
instrument_label
containing labels for each instrument
redcap_metadata
containing metadata for the fields in each
instrument as a list column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.