Chapter 3 stRoke

The package library(stRoke)(Damsbo 2022) is a collection of function to help in data management and analysis.

Below are suggestions on how to use some of the functions in your work.

3.1 Install

remotes::install_github("agdamsbo/stRoke")

3.2 Events and repeated instruments

The package includes the function read_redcap_tables(), which helps in handling the castellated REDCap data set format in projects utilizing events and repeated instruments. In {#workflow}, a structured approached is recommended as per the documentation provided by library(REDCapR)(Beasley 2022). This is fine, but can sometimes be a little inconvenient. The read_redcap_tables() works by wrapping REDCapR::redcap_read() and REDCapRITS::REDCap_split()followed by a bit of clean-up.

stRoke::read_redcap_tables(redcap_uri = "https://redcap.au.dk/api/",
                           token = "YOUR_API_KEY_GOES_HERE",
                           forms = c("rbans", "mrs"),
                           fields = c("record_id", "age", "class_toast"))

Literature

Beasley, Will. 2022. REDCapR: Interaction Between r and REDCap. https://CRAN.R-project.org/package=REDCapR.
Damsbo, Andreas Gammelgaard. 2022. stRoke: Clinical Stroke Research.