redcap_import | R Documentation |
Imports data into RedCap.
redcap_import(
df,
import,
redcap_uri = "https://redcap.rn.dk/api/",
overwrite = "normal",
...
)
df |
tibble | Data frame to import into redcap. Supports data read using
|
import |
str | Selection of which data to import. Selections:
|
redcap_uri |
str | URL to redcap API. Defaults to RN server. |
overwrite |
str | Overwrite existing data on redcap or not. Selections:
|
... |
< |
# Read PIIINP data
df_p3np <- read_p3np()
redcap_import(df_p3np, import = "p3np")
# Read TIMP1 data
df_timp1 <- read_timp1()
redcap_import(df_timp1, import = "timp1")
# Read LABKA data
df_labka <- read_labka(path = "~/Documents/1 - Data/Multisite-Labka/lakba-export_2022-09-13.xlsx",
identifier = T)
redcap_import(df_labka, import = "labka")
# Read CK18
df_ck18 <- read_ck18()
redcap_import(df_ck18, import = "ck18")
# Read insulin
df_insulin <- read_insulin()
redcap_import(df_insulin, import = "insulin")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.