create_fields: Create one or more fields in a REDCap data dictionary

Description Usage Arguments Value Examples

Description

Create one or more fields in a REDCap data dictionary

Usage

 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

Arguments

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".

Value

A tibble containing one or more fields in the data dictionary with all required columns.

Examples

 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)

Sage-Bionetworks/redcapdd documentation built on May 17, 2019, 6:34 p.m.