REDCapCAST/articles/Introduction.html

2015 lines
92 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Introduction • REDCapCAST</title>
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png">
<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png">
<script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet">
<script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.4.2/css/all.min.css" rel="stylesheet">
<link href="../deps/font-awesome-6.4.2/css/v4-shims.min.css" rel="stylesheet">
<script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Introduction">
</head>
<body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.10.3</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="active nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul>
<ul class="navbar-nav">
<li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json">
</form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul>
</div>
</div>
</nav><div class="container template-article">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Introduction</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/vignettes/Introduction.Rmd" class="external-link"><code>vignettes/Introduction.Rmd</code></a></small>
<div class="d-none name"><code>Introduction.Rmd</code></div>
</div>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://github.com/agdamsbo/REDCapCAST" class="external-link">REDCapCAST</a></span><span class="op">)</span></span></code></pre></div>
<p>This vignette covers the included functions and basic
functionality.</p>
<p>A dataset and a meta data file are provided with the package for
demonstration of the functions.</p>
<div class="section level2">
<h2 id="splitting-the-dataset">Splitting the dataset<a class="anchor" aria-label="anchor" href="#splitting-the-dataset"></a>
</h2>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_data</span> <span class="op">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="mwlefoodfi" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#mwlefoodfi table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#mwlefoodfi thead, #mwlefoodfi tbody, #mwlefoodfi tfoot, #mwlefoodfi tr, #mwlefoodfi td, #mwlefoodfi th {
border-style: none;
}
#mwlefoodfi p {
margin: 0;
padding: 0;
}
#mwlefoodfi .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
margin-left: auto;
margin-right: auto;
color: #333333;
font-size: 16px;
font-weight: normal;
font-style: normal;
background-color: #FFFFFF;
width: auto;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #A8A8A8;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #A8A8A8;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
}
#mwlefoodfi .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#mwlefoodfi .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
border-bottom-color: #FFFFFF;
border-bottom-width: 0;
}
#mwlefoodfi .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-color: #FFFFFF;
border-top-width: 0;
}
#mwlefoodfi .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 6px;
padding-left: 5px;
padding-right: 5px;
overflow-x: hidden;
}
#mwlefoodfi .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
padding-top: 0;
padding-bottom: 0;
padding-left: 4px;
padding-right: 4px;
}
#mwlefoodfi .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#mwlefoodfi .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#mwlefoodfi .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: hidden;
display: inline-block;
width: 100%;
}
#mwlefoodfi .gt_spanner_row {
border-bottom-style: hidden;
}
#mwlefoodfi .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
text-align: left;
}
#mwlefoodfi .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: middle;
}
#mwlefoodfi .gt_from_md > :first-child {
margin-top: 0;
}
#mwlefoodfi .gt_from_md > :last-child {
margin-bottom: 0;
}
#mwlefoodfi .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
margin: 10px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
overflow-x: hidden;
}
#mwlefoodfi .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
#mwlefoodfi .gt_row_group_first td {
border-top-width: 2px;
}
#mwlefoodfi .gt_row_group_first th {
border-top-width: 2px;
}
#mwlefoodfi .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#mwlefoodfi .gt_first_summary_row.thick {
border-top-width: 2px;
}
#mwlefoodfi .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-top-style: double;
border-top-width: 6px;
border-top-color: #D3D3D3;
}
#mwlefoodfi .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: double;
border-bottom-width: 6px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#mwlefoodfi .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#mwlefoodfi .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#mwlefoodfi .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#mwlefoodfi .gt_left {
text-align: left;
}
#mwlefoodfi .gt_center {
text-align: center;
}
#mwlefoodfi .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#mwlefoodfi .gt_font_normal {
font-weight: normal;
}
#mwlefoodfi .gt_font_bold {
font-weight: bold;
}
#mwlefoodfi .gt_font_italic {
font-style: italic;
}
#mwlefoodfi .gt_super {
font-size: 65%;
}
#mwlefoodfi .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#mwlefoodfi .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#mwlefoodfi .gt_indent_1 {
text-indent: 5px;
}
#mwlefoodfi .gt_indent_2 {
text-indent: 10px;
}
#mwlefoodfi .gt_indent_3 {
text-indent: 15px;
}
#mwlefoodfi .gt_indent_4 {
text-indent: 20px;
}
#mwlefoodfi .gt_indent_5 {
text-indent: 25px;
}
#mwlefoodfi .katex-display {
display: inline-flex !important;
margin-bottom: 0.75em !important;
}
#mwlefoodfi div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
height: 0px !important;
}
</style>
<table class="table gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead><tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="record_id">record_id</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="redcap_event_name">redcap_event_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="redcap_repeat_instrument">redcap_repeat_instrument</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="redcap_repeat_instance">redcap_repeat_instance</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="cpr">cpr</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="inclusion">inclusion</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="inclusion_time">inclusion_time</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="dob">dob</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="age">age</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="age_integer">age_integer</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="sex">sex</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="cohabitation">cohabitation</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="hypertension">hypertension</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="diabetes">diabetes</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="region">region</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="baseline_data_start_complete">baseline_data_start_complete</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="mrs_assessed">mrs_assessed</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="mrs_date">mrs_date</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="mrs_score">mrs_score</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="mrs_complete">mrs_complete</th>
<th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="event_datetime">event_datetime</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="event_age">event_age</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="event_type">event_type</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="new_event_complete">new_event_complete</th>
</tr></thead>
<tbody class="gt_table_body">
<tr>
<td headers="record_id" class="gt_row gt_right">1</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">1203401OB4</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-13</td>
<td headers="inclusion_time" class="gt_row gt_center">12:38:49</td>
<td headers="dob" class="gt_row gt_right">1940-03-12</td>
<td headers="age" class="gt_row gt_right">83.00239</td>
<td headers="age_integer" class="gt_row gt_right">83</td>
<td headers="sex" class="gt_row gt_left">female</td>
<td headers="cohabitation" class="gt_row gt_left">Yes</td>
<td headers="hypertension" class="gt_row gt_left">No</td>
<td headers="diabetes" class="gt_row gt_left">Yes</td>
<td headers="region" class="gt_row gt_left">East</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-13</td>
<td headers="mrs_score" class="gt_row gt_right">1</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">2</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">0102342303</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-01</td>
<td headers="inclusion_time" class="gt_row gt_center">10:38:57</td>
<td headers="dob" class="gt_row gt_right">1934-02-01</td>
<td headers="age" class="gt_row gt_right">89.07780</td>
<td headers="age_integer" class="gt_row gt_right">89</td>
<td headers="sex" class="gt_row gt_left">male</td>
<td headers="cohabitation" class="gt_row gt_left">Yes</td>
<td headers="hypertension" class="gt_row gt_left">No</td>
<td headers="diabetes" class="gt_row gt_left">No</td>
<td headers="region" class="gt_row gt_left">South</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-07</td>
<td headers="mrs_score" class="gt_row gt_right">1</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">2</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-09</td>
<td headers="mrs_score" class="gt_row gt_right">3</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">2</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:49:42</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">TIA</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">2301569823</td>
<td headers="inclusion" class="gt_row gt_right">2022-03-08</td>
<td headers="inclusion_time" class="gt_row gt_center">12:01:07</td>
<td headers="dob" class="gt_row gt_right">1956-01-23</td>
<td headers="age" class="gt_row gt_right">66.12319</td>
<td headers="age_integer" class="gt_row gt_right">66</td>
<td headers="sex" class="gt_row gt_left">male</td>
<td headers="cohabitation" class="gt_row gt_left">No</td>
<td headers="hypertension" class="gt_row gt_left">Yes</td>
<td headers="diabetes" class="gt_row gt_left">Yes</td>
<td headers="region" class="gt_row gt_left">North</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2022-08-16</td>
<td headers="mrs_score" class="gt_row gt_right">2</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">Yes</td>
<td headers="mrs_date" class="gt_row gt_right">2023-03-13</td>
<td headers="mrs_score" class="gt_row gt_right">1</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:49:58</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow1</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:01</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:05</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:07</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">TIA</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">3</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">3</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:09</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">0204051342</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-14</td>
<td headers="inclusion_time" class="gt_row gt_center">20:39:19</td>
<td headers="dob" class="gt_row gt_right">1905-04-02</td>
<td headers="age" class="gt_row gt_right">117.94903</td>
<td headers="age_integer" class="gt_row gt_right">117</td>
<td headers="sex" class="gt_row gt_left">female</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Incomplete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">1</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:19</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">AIS</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">2</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:22</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">ICH</td>
<td headers="new_event_complete" class="gt_row gt_left">Incomplete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">4</td>
<td headers="redcap_event_name" class="gt_row gt_left">follow2</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">New Event (?)</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">3</td>
<td headers="cpr" class="gt_row gt_left">NA</td>
<td headers="inclusion" class="gt_row gt_right">NA</td>
<td headers="inclusion_time" class="gt_row gt_center">NA</td>
<td headers="dob" class="gt_row gt_right">NA</td>
<td headers="age" class="gt_row gt_right">NA</td>
<td headers="age_integer" class="gt_row gt_right">NA</td>
<td headers="sex" class="gt_row gt_left">NA</td>
<td headers="cohabitation" class="gt_row gt_left">NA</td>
<td headers="hypertension" class="gt_row gt_left">NA</td>
<td headers="diabetes" class="gt_row gt_left">NA</td>
<td headers="region" class="gt_row gt_left">NA</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">NA</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">NA</td>
<td headers="event_datetime" class="gt_row gt_right">2024-01-18 12:50:24</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">Unknown</td>
<td headers="new_event_complete" class="gt_row gt_left">Complete</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">5</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">0201976043</td>
<td headers="inclusion" class="gt_row gt_right">2023-03-23</td>
<td headers="inclusion_time" class="gt_row gt_center">08:50:31</td>
<td headers="dob" class="gt_row gt_right">1897-01-02</td>
<td headers="age" class="gt_row gt_right">126.21751</td>
<td headers="age_integer" class="gt_row gt_right">126</td>
<td headers="sex" class="gt_row gt_left">male</td>
<td headers="cohabitation" class="gt_row gt_left">No</td>
<td headers="hypertension" class="gt_row gt_left">Yes</td>
<td headers="diabetes" class="gt_row gt_left">Yes</td>
<td headers="region" class="gt_row gt_left">East</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Complete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="record_id" class="gt_row gt_right">6</td>
<td headers="redcap_event_name" class="gt_row gt_left">inclusion</td>
<td headers="redcap_repeat_instrument" class="gt_row gt_left">NA</td>
<td headers="redcap_repeat_instance" class="gt_row gt_right">NA</td>
<td headers="cpr" class="gt_row gt_left">1202320122</td>
<td headers="inclusion" class="gt_row gt_right">2024-01-25</td>
<td headers="inclusion_time" class="gt_row gt_center">08:49:28</td>
<td headers="dob" class="gt_row gt_right">1932-02-12</td>
<td headers="age" class="gt_row gt_right">91.95261</td>
<td headers="age_integer" class="gt_row gt_right">91</td>
<td headers="sex" class="gt_row gt_left">female</td>
<td headers="cohabitation" class="gt_row gt_left">No</td>
<td headers="hypertension" class="gt_row gt_left">Yes</td>
<td headers="diabetes" class="gt_row gt_left">No</td>
<td headers="region" class="gt_row gt_left">East</td>
<td headers="baseline_data_start_complete" class="gt_row gt_left">Complete</td>
<td headers="mrs_assessed" class="gt_row gt_left">NA</td>
<td headers="mrs_date" class="gt_row gt_right">NA</td>
<td headers="mrs_score" class="gt_row gt_right">NA</td>
<td headers="mrs_complete" class="gt_row gt_left">Incomplete</td>
<td headers="event_datetime" class="gt_row gt_right">NA</td>
<td headers="event_age" class="gt_row gt_center">NA</td>
<td headers="event_type" class="gt_row gt_left">NA</td>
<td headers="new_event_complete" class="gt_row gt_left">NA</td>
</tr>
</tbody>
</table>
</div>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_meta</span> <span class="op">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="eexombwkke" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#eexombwkke table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#eexombwkke thead, #eexombwkke tbody, #eexombwkke tfoot, #eexombwkke tr, #eexombwkke td, #eexombwkke th {
border-style: none;
}
#eexombwkke p {
margin: 0;
padding: 0;
}
#eexombwkke .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
margin-left: auto;
margin-right: auto;
color: #333333;
font-size: 16px;
font-weight: normal;
font-style: normal;
background-color: #FFFFFF;
width: auto;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #A8A8A8;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #A8A8A8;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
}
#eexombwkke .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#eexombwkke .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
border-bottom-color: #FFFFFF;
border-bottom-width: 0;
}
#eexombwkke .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-color: #FFFFFF;
border-top-width: 0;
}
#eexombwkke .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 6px;
padding-left: 5px;
padding-right: 5px;
overflow-x: hidden;
}
#eexombwkke .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
padding-top: 0;
padding-bottom: 0;
padding-left: 4px;
padding-right: 4px;
}
#eexombwkke .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#eexombwkke .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#eexombwkke .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: hidden;
display: inline-block;
width: 100%;
}
#eexombwkke .gt_spanner_row {
border-bottom-style: hidden;
}
#eexombwkke .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
text-align: left;
}
#eexombwkke .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: middle;
}
#eexombwkke .gt_from_md > :first-child {
margin-top: 0;
}
#eexombwkke .gt_from_md > :last-child {
margin-bottom: 0;
}
#eexombwkke .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
margin: 10px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
overflow-x: hidden;
}
#eexombwkke .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
#eexombwkke .gt_row_group_first td {
border-top-width: 2px;
}
#eexombwkke .gt_row_group_first th {
border-top-width: 2px;
}
#eexombwkke .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#eexombwkke .gt_first_summary_row.thick {
border-top-width: 2px;
}
#eexombwkke .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-top-style: double;
border-top-width: 6px;
border-top-color: #D3D3D3;
}
#eexombwkke .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: double;
border-bottom-width: 6px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#eexombwkke .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_left {
text-align: left;
}
#eexombwkke .gt_center {
text-align: center;
}
#eexombwkke .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#eexombwkke .gt_font_normal {
font-weight: normal;
}
#eexombwkke .gt_font_bold {
font-weight: bold;
}
#eexombwkke .gt_font_italic {
font-style: italic;
}
#eexombwkke .gt_super {
font-size: 65%;
}
#eexombwkke .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#eexombwkke .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#eexombwkke .gt_indent_1 {
text-indent: 5px;
}
#eexombwkke .gt_indent_2 {
text-indent: 10px;
}
#eexombwkke .gt_indent_3 {
text-indent: 15px;
}
#eexombwkke .gt_indent_4 {
text-indent: 20px;
}
#eexombwkke .gt_indent_5 {
text-indent: 25px;
}
#eexombwkke .katex-display {
display: inline-flex !important;
margin-bottom: 0.75em !important;
}
#eexombwkke div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
height: 0px !important;
}
</style>
<table class="table gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead><tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_name">field_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="form_name">form_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="section_header">section_header</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_type">field_type</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_label">field_label</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="select_choices_or_calculations">select_choices_or_calculations</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_note">field_note</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_type_or_show_slider_number">text_validation_type_or_show_slider_number</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_min">text_validation_min</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_max">text_validation_max</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="identifier">identifier</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="branching_logic">branching_logic</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="required_field">required_field</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="custom_alignment">custom_alignment</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="question_number">question_number</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="matrix_group_name">matrix_group_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="matrix_ranking">matrix_ranking</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_annotation">field_annotation</th>
</tr></thead>
<tbody class="gt_table_body">
<tr>
<td headers="field_name" class="gt_row gt_left">record_id</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">ID</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">cpr</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">CPR (Danish civil registration number)</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">ddmmyyxxxx</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">y</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">y</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">inclusion</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Inclusion date</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_ymd</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">dob</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Date of birth (From CPR)</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_ymd</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">@CALCTEXT(if([cpr]!="", concat(if(mid([cpr], 7, 1)&gt;=0 and mid([cpr], 7, 1)&lt;=3,19, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=36 and mid([cpr], 7, 1)&gt;=4 and mid([cpr], 7, 1)&lt;=4,20, if(mid([cpr], 5, 2)&gt;=37 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=4 and mid([cpr], 7, 1)&lt;=4,19, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=5 and mid([cpr], 7, 1)&lt;=5,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=5 and mid([cpr], 7, 1)&lt;=5,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=6 and mid([cpr], 7, 1)&lt;=6,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=6 and mid([cpr], 7, 1)&lt;=6,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=7 and mid([cpr], 7, 1)&lt;=7,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=7 and mid([cpr], 7, 1)&lt;=7,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=57 and mid([cpr], 7, 1)&gt;=8 and mid([cpr], 7, 1)&lt;=8,20, if(mid([cpr], 5, 2)&gt;=58 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=8 and mid([cpr], 7, 1)&lt;=8,18, if(mid([cpr], 5, 2)&gt;=0 and mid([cpr], 5, 2)&lt;=36 and mid([cpr], 7, 1)&gt;=9 and mid([cpr], 7, 1)&lt;=9,20, if(mid([cpr], 5, 2)&gt;=37 and mid([cpr], 5, 2)&lt;=99 and mid([cpr], 7, 1)&gt;=9 and mid([cpr], 7, 1)&lt;=9,19,17))))))))))))), mid([cpr], 5, 2), "-",mid([cpr],3, 2), "-", left([cpr], 2) ), ""))</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">age</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">calc</td>
<td headers="field_label" class="gt_row gt_left">Age
Note: Apparently, the build in datediff() function does not handle counting whole years. This results in wrongly counting age higher around the date of birth.</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">if([cpr]!="" and [inclusion]!="", datediff([dob], [inclusion], 'y'), "")</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">age_integer</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">calc</td>
<td headers="field_label" class="gt_row gt_left">Age integer
Note: as opposed to the build in datediff() this handles counting years as integers very well. Calculate decimal years in statistical programming software. In R you can use with(ds, stRoke::age_calc(dob, inclusion)).</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">if([cpr]!="", left([inclusion], 4)-left([dob], 4) - if(mid([dob], 6, 2) &lt; mid([inclusion], 6, 2) or (mid([dob], 6, 2) = mid([inclusion], 6, 2) and mid([dob], 9, 2) &lt;= mid([inclusion], 9, 2)), 0, 1),"")</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">sex</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Legal sex</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">@CALCTEXT(if([cpr]!="",if((right([cpr],1)=1 or right([cpr],1)=3 or right([cpr],1)=5 or right([cpr],1)=7 or right([cpr],1)=9),"male","female"),""))</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">cohabitation</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">History and social</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Cohabitation</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">hypertension</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Hypertension</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">diabetes</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Diabetes</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">region</td>
<td headers="form_name" class="gt_row gt_left">baseline_data_start</td>
<td headers="section_header" class="gt_row gt_left">Area</td>
<td headers="field_type" class="gt_row gt_left">dropdown</td>
<td headers="field_label" class="gt_row gt_left">Region</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, North | 2, East | 3, South | 4, West</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">autocomplete</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_assessed</td>
<td headers="form_name" class="gt_row gt_left">mrs</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Assesed</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, Yes | 2, No</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_date</td>
<td headers="form_name" class="gt_row gt_left">mrs</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Assessment date</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_dmy</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_score</td>
<td headers="form_name" class="gt_row gt_left">mrs</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">mRS score</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">0, 0 | 1, 1 | 2, 2 | 3, 3 | 4, 4 | 5, 5</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_date</td>
<td headers="form_name" class="gt_row gt_left">new_event</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">Date of event</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_dmy</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_type</td>
<td headers="form_name" class="gt_row gt_left">new_event</td>
<td headers="section_header" class="gt_row gt_left">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">Neurovascular event</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, TIA | 2, AIS | 3, ICH | 4, SAH | 99, Unknown</td>
<td headers="field_note" class="gt_row gt_left">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_left">NA</td>
<td headers="text_validation_max" class="gt_row gt_left">NA</td>
<td headers="identifier" class="gt_row gt_left">NA</td>
<td headers="branching_logic" class="gt_row gt_left">NA</td>
<td headers="required_field" class="gt_row gt_left">NA</td>
<td headers="custom_alignment" class="gt_row gt_left">NA</td>
<td headers="question_number" class="gt_row gt_left">NA</td>
<td headers="matrix_group_name" class="gt_row gt_left">NA</td>
<td headers="matrix_ranking" class="gt_row gt_left">NA</td>
<td headers="field_annotation" class="gt_row gt_left">NA</td>
</tr>
</tbody>
</table>
</div>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">list</span> <span class="op">&lt;-</span></span>
<span> <span class="fu"><a href="../reference/REDCap_split.html">REDCap_split</a></span><span class="op">(</span></span>
<span> records <span class="op">=</span> <span class="va">redcapcast_data</span>,</span>
<span> metadata <span class="op">=</span> <span class="va">redcapcast_meta</span>,</span>
<span> forms <span class="op">=</span> <span class="st">"repeating"</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/sanitize_split.html">sanitize_split</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="va">list</span><span class="op">)</span></span>
<span><span class="co">#&gt; List of 2</span></span>
<span><span class="co">#&gt; $ : tibble [10 × 17] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:10] 1 2 2 3 3 3 4 4 5 6</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name : chr [1:10] "inclusion" "inclusion" "follow1" "inclusion" ...</span></span>
<span><span class="co">#&gt; ..$ cpr : chr [1:10] "1203401OB4" "0102342303" NA "2301569823" ...</span></span>
<span><span class="co">#&gt; ..$ inclusion : Date[1:10], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; ..$ dob : Date[1:10], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; ..$ age : num [1:10] 83 89.1 NA 66.1 NA ...</span></span>
<span><span class="co">#&gt; ..$ age_integer : num [1:10] 83 89 NA 66 NA NA 117 NA 126 91</span></span>
<span><span class="co">#&gt; ..$ sex : chr [1:10] "female" "male" NA "male" ...</span></span>
<span><span class="co">#&gt; ..$ cohabitation : chr [1:10] "Yes" "Yes" NA "No" ...</span></span>
<span><span class="co">#&gt; ..$ hypertension : chr [1:10] "No" "No" NA "Yes" ...</span></span>
<span><span class="co">#&gt; ..$ diabetes : chr [1:10] "Yes" "No" NA "Yes" ...</span></span>
<span><span class="co">#&gt; ..$ region : chr [1:10] "East" "South" NA "North" ...</span></span>
<span><span class="co">#&gt; ..$ baseline_data_start_complete: chr [1:10] "Incomplete" "Incomplete" NA "Incomplete" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_assessed : chr [1:10] "Yes" "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..$ mrs_date : Date[1:10], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_score : num [1:10] 1 1 3 NA 2 1 NA NA NA NA</span></span>
<span><span class="co">#&gt; ..$ mrs_complete : chr [1:10] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event: tibble [9 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:9] 2 3 3 3 3 3 4 4 4</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name : chr [1:9] "follow1" "follow1" "follow1" "follow2" ...</span></span>
<span><span class="co">#&gt; ..$ redcap_repeat_instrument: chr [1:9] "new_event" "new_event" "new_event" "new_event" ...</span></span>
<span><span class="co">#&gt; ..$ redcap_repeat_instance : num [1:9] 1 1 2 1 2 3 1 2 3</span></span>
<span><span class="co">#&gt; ..$ event_type : chr [1:9] "TIA" "AIS" "ICH" "ICH" ...</span></span>
<span><span class="co">#&gt; ..$ new_event_complete : chr [1:9] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span></code></pre></div>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">list</span> <span class="op">&lt;-</span></span>
<span> <span class="fu"><a href="../reference/REDCap_split.html">REDCap_split</a></span><span class="op">(</span></span>
<span> records <span class="op">=</span> <span class="va">redcapcast_data</span>,</span>
<span> metadata <span class="op">=</span> <span class="va">redcapcast_meta</span>,</span>
<span> forms <span class="op">=</span> <span class="st">"all"</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/sanitize_split.html">sanitize_split</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="va">list</span><span class="op">)</span></span>
<span><span class="co">#&gt; List of 3</span></span>
<span><span class="co">#&gt; $ baseline_data_start: tibble [6 × 13] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:6] 1 2 3 4 5 6</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name : chr [1:6] "inclusion" "inclusion" "inclusion" "inclusion" ...</span></span>
<span><span class="co">#&gt; ..$ cpr : chr [1:6] "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
<span><span class="co">#&gt; ..$ inclusion : Date[1:6], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; ..$ dob : Date[1:6], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; ..$ age : num [1:6] 83 89.1 66.1 117.9 126.2 ...</span></span>
<span><span class="co">#&gt; ..$ age_integer : num [1:6] 83 89 66 117 126 91</span></span>
<span><span class="co">#&gt; ..$ sex : chr [1:6] "female" "male" "male" "female" ...</span></span>
<span><span class="co">#&gt; ..$ cohabitation : chr [1:6] "Yes" "Yes" "No" NA ...</span></span>
<span><span class="co">#&gt; ..$ hypertension : chr [1:6] "No" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..$ diabetes : chr [1:6] "Yes" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; ..$ region : chr [1:6] "East" "South" "North" NA ...</span></span>
<span><span class="co">#&gt; ..$ baseline_data_start_complete: chr [1:6] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ mrs : tibble [5 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:5] 1 2 2 3 3</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name: chr [1:5] "inclusion" "inclusion" "follow1" "follow1" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_assessed : chr [1:5] "Yes" "Yes" "Yes" "Yes" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_date : Date[1:5], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; ..$ mrs_score : num [1:5] 1 1 3 2 1</span></span>
<span><span class="co">#&gt; ..$ mrs_complete : chr [1:5] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event : tibble [9 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; ..$ record_id : num [1:9] 2 3 3 3 3 3 4 4 4</span></span>
<span><span class="co">#&gt; ..$ redcap_event_name : chr [1:9] "follow1" "follow1" "follow1" "follow2" ...</span></span>
<span><span class="co">#&gt; ..$ redcap_repeat_instrument: chr [1:9] "new_event" "new_event" "new_event" "new_event" ...</span></span>
<span><span class="co">#&gt; ..$ redcap_repeat_instance : num [1:9] 1 1 2 1 2 3 1 2 3</span></span>
<span><span class="co">#&gt; ..$ event_type : chr [1:9] "TIA" "AIS" "ICH" "ICH" ...</span></span>
<span><span class="co">#&gt; ..$ new_event_complete : chr [1:9] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="reading-data-from-redcap">Reading data from REDCap<a class="anchor" aria-label="anchor" href="#reading-data-from-redcap"></a>
</h2>
<p>This function wraps all the above demonstrated function to get the
dataset, the metadata, apply the <code>REDCap_split</code>function and
then a bit of cleaning. It just cuts outs all the steps for an easier
approach.</p>
<p>The function works very similar to the
<code><a href="https://ouhscbbmc.github.io/REDCapR/reference/redcap_read.html" class="external-link">REDCapR::redcap_read()</a></code> in allowing to specify fields,
events and forms for export instead of exporting the whole database and
filtering afterwards. I believe this is a better and safer, focused
approach.</p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># read_redcap_tables(uri = "YOUR URI", token = "YOUR TOKEN")</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="pivotting-to-wider-format">Pivotting to wider format<a class="anchor" aria-label="anchor" href="#pivotting-to-wider-format"></a>
</h2>
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="fu"><a href="../reference/redcap_wider.html">redcap_wider</a></span><span class="op">(</span><span class="va">list</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</span></span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</span></span>
<span><span class="co">#&gt; 'data.frame': 6 obs. of 36 variables:</span></span>
<span><span class="co">#&gt; $ record_id : num 1 2 3 4 5 6</span></span>
<span><span class="co">#&gt; $ cpr : chr "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
<span><span class="co">#&gt; $ inclusion : Date, format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ dob : Date, format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num 83 89.1 66.1 117.9 126.2 ...</span></span>
<span><span class="co">#&gt; $ age_integer : num 83 89 66 117 126 91</span></span>
<span><span class="co">#&gt; $ sex : chr "female" "male" "male" "female" ...</span></span>
<span><span class="co">#&gt; $ cohabitation : chr "Yes" "Yes" "No" NA ...</span></span>
<span><span class="co">#&gt; $ hypertension : chr "No" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ diabetes : chr "Yes" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ region : chr "East" "South" "North" NA ...</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete: chr "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_inclusion : chr "Yes" "Yes" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_follow1 : chr NA "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_follow2 : chr NA NA "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_date_inclusion : Date, format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_date_follow1 : Date, format: NA "2023-03-09" ...</span></span>
<span><span class="co">#&gt; $ mrs_date_follow2 : Date, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_score_inclusion : num 1 1 NA NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_score_follow1 : num NA 3 2 NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_score_follow2 : num NA NA 1 NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_complete_inclusion : chr "Incomplete" "Incomplete" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete_follow1 : chr NA "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete_follow2 : chr NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ event_type_1_follow1 : chr NA "TIA" "AIS" NA ...</span></span>
<span><span class="co">#&gt; $ event_type_1_follow2 : chr NA NA "ICH" "AIS" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_1_follow1: chr NA "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_1_follow2: chr NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ event_type_2_follow1 : chr NA NA "ICH" NA ...</span></span>
<span><span class="co">#&gt; $ event_type_2_follow2 : chr NA NA "TIA" "ICH" ...</span></span>
<span><span class="co">#&gt; $ event_type_3_follow1 : chr NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_type_3_follow2 : chr NA NA "AIS" "Unknown" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_2_follow1: chr NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_2_follow2: chr NA NA "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_3_follow1: chr NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_3_follow2: chr NA NA "Incomplete" "Complete" ...</span></span></code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside>
</div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer>
</div>
</body>
</html>