atri_crf: Read ATRI CRF data

Description Usage Arguments Value See Also Examples

View source: R/atri_crf.R

Description

Read ATRI CRF data

Usage

1
atri_crf(protocol, crf, datalake = TRUE, wide = TRUE, translated = TRUE)

Arguments

protocol

The protocol name (e.g. 'a345-test-1').

crf

The table name (e.g. 'registry').

datalake

default is TRUE, which returns data from the latest data extract from the data lake s3 archive topic. With datalake=FALSE, returns the current data using the public API (/public/api/v1/crfs/data/<crf>).

wide

default is TRUE, which returns data with one record per row (one column per field). With wide=FALSE, returns data in the raw, long format (one row per field).

translated

default is TRUE, which returns translated data. Only applicable if wide=TRUE

Value

A data.frame of the crf data.

See Also

atri_api

Examples

1
2
3
4
   registry_wide <- atri_crf("a345-test-1", "registry")
   registry_long <- atri_crf("a345-test-1", "registry",wide=F)
   registry_untranslated <- atri_crf("a345-test-1", "registry",translated=F)
   registry_live <- atri_crf("a345-test-1", "registry",datalake=F)

rg08705/test documentation built on Feb. 14, 2022, 3:07 a.m.