redcap_read: Extracts data from redcap (using httr) and writes it to a...

View source: R/redcap.R

redcap_readR Documentation

Extracts data from redcap (using httr) and writes it to a easy to use tibble. API token is collected using R studio api when function is run.

Description

Extracts data from redcap (using httr) and writes it to a easy to use tibble. API token is collected using R studio api when function is run.

Usage

redcap_read(
  fields = NULL,
  records = NULL,
  redcap_uri = "https://redcap.rn.dk/api/",
  identifier = FALSE,
  ...
)

Arguments

fields

str | Single or several fields to read from redcap

records

num | Single or several records to read. Defaults to ALL

redcap_uri

str | Url to redcap API

identifier

bool | Whether or not to include CPR number in the return.

...

Extra arguments

Value

tibble

Note

If you wish to combine lakba with redcap data you must include CPR number (identifier = TRUE)

Examples

redcap_read(fields = c("bmi", "weight"),
            records = c(1001, 1002))

AndersAskeland/chewr documentation built on June 23, 2022, 11:07 a.m.