Description Usage Arguments Value Examples
Create one or more fields in a REDCap data dictionary
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | create_fields(x)
create_field_type(type, x)
create_calc_field(x)
create_checkbox_field(x)
create_descriptive_field(x)
create_dropdown_field(x)
create_file_field(x)
create_notes_field(x)
create_radio_field(x)
create_slider_field(x)
create_sql_field(x)
create_text_field(x)
create_truefalse_field(x)
create_yesno_field(x)
|
x |
An object (list or data frame) containing information for the fields to be added. |
type |
A field type. One of: "calc", "checkbox", "descriptive", "dropdown", "file", "notes", "radio", "slider", "sql", "text", "truefalse", "yesno". |
A tibble containing one or more fields in the data dictionary with all required columns.
1 2 3 4 5 6 7 8 9 10 11 | x <- list(
"Variable / Field Name" = "patient_name",
"Field Label" = "Patient name"
)
create_fields(x)
x <- tibble::tibble(
`Variable / Field Name` = "patient_name",
`Field Label` = "Patient name"
)
create_fields(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.