This commit is contained in:
Andreas Gammelgaard Damsbo 2023-06-05 08:43:03 +02:00
parent 79c01feb3c
commit 72c86fb26f
7 changed files with 126 additions and 159 deletions

View File

@ -98,23 +98,23 @@ demonstration of the functions.</p>
</h2> </h2>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r"> <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> <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="keomoihxmb" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"> <div id="ixntfrihfd" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#keomoihxmb table { <style>#ixntfrihfd table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; 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; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
#keomoihxmb thead, #keomoihxmb tbody, #keomoihxmb tfoot, #keomoihxmb tr, #keomoihxmb td, #keomoihxmb th { #ixntfrihfd thead, #ixntfrihfd tbody, #ixntfrihfd tfoot, #ixntfrihfd tr, #ixntfrihfd td, #ixntfrihfd th {
border-style: none; border-style: none;
} }
#keomoihxmb p { #ixntfrihfd p {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#keomoihxmb .gt_table { #ixntfrihfd .gt_table {
display: table; display: table;
border-collapse: collapse; border-collapse: collapse;
line-height: normal; line-height: normal;
@ -140,12 +140,12 @@ demonstration of the functions.</p>
border-left-color: #D3D3D3; border-left-color: #D3D3D3;
} }
#keomoihxmb .gt_caption { #ixntfrihfd .gt_caption {
padding-top: 4px; padding-top: 4px;
padding-bottom: 4px; padding-bottom: 4px;
} }
#keomoihxmb .gt_title { #ixntfrihfd .gt_title {
color: #333333; color: #333333;
font-size: 125%; font-size: 125%;
font-weight: initial; font-weight: initial;
@ -157,7 +157,7 @@ demonstration of the functions.</p>
border-bottom-width: 0; border-bottom-width: 0;
} }
#keomoihxmb .gt_subtitle { #ixntfrihfd .gt_subtitle {
color: #333333; color: #333333;
font-size: 85%; font-size: 85%;
font-weight: initial; font-weight: initial;
@ -169,7 +169,7 @@ demonstration of the functions.</p>
border-top-width: 0; border-top-width: 0;
} }
#keomoihxmb .gt_heading { #ixntfrihfd .gt_heading {
background-color: #FFFFFF; background-color: #FFFFFF;
text-align: center; text-align: center;
border-bottom-color: #FFFFFF; border-bottom-color: #FFFFFF;
@ -181,13 +181,13 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#keomoihxmb .gt_bottom_border { #ixntfrihfd .gt_bottom_border {
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: 2px; border-bottom-width: 2px;
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#keomoihxmb .gt_col_headings { #ixntfrihfd .gt_col_headings {
border-top-style: solid; border-top-style: solid;
border-top-width: 2px; border-top-width: 2px;
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
@ -202,7 +202,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#keomoihxmb .gt_col_heading { #ixntfrihfd .gt_col_heading {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -222,7 +222,7 @@ demonstration of the functions.</p>
overflow-x: hidden; overflow-x: hidden;
} }
#keomoihxmb .gt_column_spanner_outer { #ixntfrihfd .gt_column_spanner_outer {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -234,15 +234,15 @@ demonstration of the functions.</p>
padding-right: 4px; padding-right: 4px;
} }
#keomoihxmb .gt_column_spanner_outer:first-child { #ixntfrihfd .gt_column_spanner_outer:first-child {
padding-left: 0; padding-left: 0;
} }
#keomoihxmb .gt_column_spanner_outer:last-child { #ixntfrihfd .gt_column_spanner_outer:last-child {
padding-right: 0; padding-right: 0;
} }
#keomoihxmb .gt_column_spanner { #ixntfrihfd .gt_column_spanner {
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: 2px; border-bottom-width: 2px;
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
@ -254,11 +254,11 @@ demonstration of the functions.</p>
width: 100%; width: 100%;
} }
#keomoihxmb .gt_spanner_row { #ixntfrihfd .gt_spanner_row {
border-bottom-style: hidden; border-bottom-style: hidden;
} }
#keomoihxmb .gt_group_heading { #ixntfrihfd .gt_group_heading {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -284,7 +284,7 @@ demonstration of the functions.</p>
text-align: left; text-align: left;
} }
#keomoihxmb .gt_empty_group_heading { #ixntfrihfd .gt_empty_group_heading {
padding: 0.5px; padding: 0.5px;
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
@ -299,15 +299,15 @@ demonstration of the functions.</p>
vertical-align: middle; vertical-align: middle;
} }
#keomoihxmb .gt_from_md > :first-child { #ixntfrihfd .gt_from_md > :first-child {
margin-top: 0; margin-top: 0;
} }
#keomoihxmb .gt_from_md > :last-child { #ixntfrihfd .gt_from_md > :last-child {
margin-bottom: 0; margin-bottom: 0;
} }
#keomoihxmb .gt_row { #ixntfrihfd .gt_row {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -326,7 +326,7 @@ demonstration of the functions.</p>
overflow-x: hidden; overflow-x: hidden;
} }
#keomoihxmb .gt_stub { #ixntfrihfd .gt_stub {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -339,7 +339,7 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#keomoihxmb .gt_stub_row_group { #ixntfrihfd .gt_stub_row_group {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -353,15 +353,15 @@ demonstration of the functions.</p>
vertical-align: top; vertical-align: top;
} }
#keomoihxmb .gt_row_group_first td { #ixntfrihfd .gt_row_group_first td {
border-top-width: 2px; border-top-width: 2px;
} }
#keomoihxmb .gt_row_group_first th { #ixntfrihfd .gt_row_group_first th {
border-top-width: 2px; border-top-width: 2px;
} }
#keomoihxmb .gt_summary_row { #ixntfrihfd .gt_summary_row {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
text-transform: inherit; text-transform: inherit;
@ -371,16 +371,16 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#keomoihxmb .gt_first_summary_row { #ixntfrihfd .gt_first_summary_row {
border-top-style: solid; border-top-style: solid;
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
} }
#keomoihxmb .gt_first_summary_row.thick { #ixntfrihfd .gt_first_summary_row.thick {
border-top-width: 2px; border-top-width: 2px;
} }
#keomoihxmb .gt_last_summary_row { #ixntfrihfd .gt_last_summary_row {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -390,7 +390,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#keomoihxmb .gt_grand_summary_row { #ixntfrihfd .gt_grand_summary_row {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
text-transform: inherit; text-transform: inherit;
@ -400,7 +400,7 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#keomoihxmb .gt_first_grand_summary_row { #ixntfrihfd .gt_first_grand_summary_row {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -410,7 +410,7 @@ demonstration of the functions.</p>
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
} }
#keomoihxmb .gt_last_grand_summary_row_top { #ixntfrihfd .gt_last_grand_summary_row_top {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -420,11 +420,11 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#keomoihxmb .gt_striped { #ixntfrihfd .gt_striped {
background-color: rgba(128, 128, 128, 0.05); background-color: rgba(128, 128, 128, 0.05);
} }
#keomoihxmb .gt_table_body { #ixntfrihfd .gt_table_body {
border-top-style: solid; border-top-style: solid;
border-top-width: 2px; border-top-width: 2px;
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
@ -433,7 +433,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#keomoihxmb .gt_footnotes { #ixntfrihfd .gt_footnotes {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
border-bottom-style: none; border-bottom-style: none;
@ -447,7 +447,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#keomoihxmb .gt_footnote { #ixntfrihfd .gt_footnote {
margin: 0px; margin: 0px;
font-size: 90%; font-size: 90%;
padding-top: 4px; padding-top: 4px;
@ -456,7 +456,7 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#keomoihxmb .gt_sourcenotes { #ixntfrihfd .gt_sourcenotes {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
border-bottom-style: none; border-bottom-style: none;
@ -470,7 +470,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#keomoihxmb .gt_sourcenote { #ixntfrihfd .gt_sourcenote {
font-size: 90%; font-size: 90%;
padding-top: 4px; padding-top: 4px;
padding-bottom: 4px; padding-bottom: 4px;
@ -478,63 +478,63 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#keomoihxmb .gt_left { #ixntfrihfd .gt_left {
text-align: left; text-align: left;
} }
#keomoihxmb .gt_center { #ixntfrihfd .gt_center {
text-align: center; text-align: center;
} }
#keomoihxmb .gt_right { #ixntfrihfd .gt_right {
text-align: right; text-align: right;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
#keomoihxmb .gt_font_normal { #ixntfrihfd .gt_font_normal {
font-weight: normal; font-weight: normal;
} }
#keomoihxmb .gt_font_bold { #ixntfrihfd .gt_font_bold {
font-weight: bold; font-weight: bold;
} }
#keomoihxmb .gt_font_italic { #ixntfrihfd .gt_font_italic {
font-style: italic; font-style: italic;
} }
#keomoihxmb .gt_super { #ixntfrihfd .gt_super {
font-size: 65%; font-size: 65%;
} }
#keomoihxmb .gt_footnote_marks { #ixntfrihfd .gt_footnote_marks {
font-size: 75%; font-size: 75%;
vertical-align: 0.4em; vertical-align: 0.4em;
position: initial; position: initial;
} }
#keomoihxmb .gt_asterisk { #ixntfrihfd .gt_asterisk {
font-size: 100%; font-size: 100%;
vertical-align: 0; vertical-align: 0;
} }
#keomoihxmb .gt_indent_1 { #ixntfrihfd .gt_indent_1 {
text-indent: 5px; text-indent: 5px;
} }
#keomoihxmb .gt_indent_2 { #ixntfrihfd .gt_indent_2 {
text-indent: 10px; text-indent: 10px;
} }
#keomoihxmb .gt_indent_3 { #ixntfrihfd .gt_indent_3 {
text-indent: 15px; text-indent: 15px;
} }
#keomoihxmb .gt_indent_4 { #ixntfrihfd .gt_indent_4 {
text-indent: 20px; text-indent: 20px;
} }
#keomoihxmb .gt_indent_5 { #ixntfrihfd .gt_indent_5 {
text-indent: 25px; text-indent: 25px;
} }
</style> </style>
@ -1001,23 +1001,23 @@ demonstration of the functions.</p>
</div> </div>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r"> <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> <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="howggqvkiz" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"> <div id="gzbgzhlwxt" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#howggqvkiz table { <style>#gzbgzhlwxt table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; 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; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
#howggqvkiz thead, #howggqvkiz tbody, #howggqvkiz tfoot, #howggqvkiz tr, #howggqvkiz td, #howggqvkiz th { #gzbgzhlwxt thead, #gzbgzhlwxt tbody, #gzbgzhlwxt tfoot, #gzbgzhlwxt tr, #gzbgzhlwxt td, #gzbgzhlwxt th {
border-style: none; border-style: none;
} }
#howggqvkiz p { #gzbgzhlwxt p {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#howggqvkiz .gt_table { #gzbgzhlwxt .gt_table {
display: table; display: table;
border-collapse: collapse; border-collapse: collapse;
line-height: normal; line-height: normal;
@ -1043,12 +1043,12 @@ demonstration of the functions.</p>
border-left-color: #D3D3D3; border-left-color: #D3D3D3;
} }
#howggqvkiz .gt_caption { #gzbgzhlwxt .gt_caption {
padding-top: 4px; padding-top: 4px;
padding-bottom: 4px; padding-bottom: 4px;
} }
#howggqvkiz .gt_title { #gzbgzhlwxt .gt_title {
color: #333333; color: #333333;
font-size: 125%; font-size: 125%;
font-weight: initial; font-weight: initial;
@ -1060,7 +1060,7 @@ demonstration of the functions.</p>
border-bottom-width: 0; border-bottom-width: 0;
} }
#howggqvkiz .gt_subtitle { #gzbgzhlwxt .gt_subtitle {
color: #333333; color: #333333;
font-size: 85%; font-size: 85%;
font-weight: initial; font-weight: initial;
@ -1072,7 +1072,7 @@ demonstration of the functions.</p>
border-top-width: 0; border-top-width: 0;
} }
#howggqvkiz .gt_heading { #gzbgzhlwxt .gt_heading {
background-color: #FFFFFF; background-color: #FFFFFF;
text-align: center; text-align: center;
border-bottom-color: #FFFFFF; border-bottom-color: #FFFFFF;
@ -1084,13 +1084,13 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#howggqvkiz .gt_bottom_border { #gzbgzhlwxt .gt_bottom_border {
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: 2px; border-bottom-width: 2px;
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#howggqvkiz .gt_col_headings { #gzbgzhlwxt .gt_col_headings {
border-top-style: solid; border-top-style: solid;
border-top-width: 2px; border-top-width: 2px;
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
@ -1105,7 +1105,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#howggqvkiz .gt_col_heading { #gzbgzhlwxt .gt_col_heading {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -1125,7 +1125,7 @@ demonstration of the functions.</p>
overflow-x: hidden; overflow-x: hidden;
} }
#howggqvkiz .gt_column_spanner_outer { #gzbgzhlwxt .gt_column_spanner_outer {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -1137,15 +1137,15 @@ demonstration of the functions.</p>
padding-right: 4px; padding-right: 4px;
} }
#howggqvkiz .gt_column_spanner_outer:first-child { #gzbgzhlwxt .gt_column_spanner_outer:first-child {
padding-left: 0; padding-left: 0;
} }
#howggqvkiz .gt_column_spanner_outer:last-child { #gzbgzhlwxt .gt_column_spanner_outer:last-child {
padding-right: 0; padding-right: 0;
} }
#howggqvkiz .gt_column_spanner { #gzbgzhlwxt .gt_column_spanner {
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: 2px; border-bottom-width: 2px;
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
@ -1157,11 +1157,11 @@ demonstration of the functions.</p>
width: 100%; width: 100%;
} }
#howggqvkiz .gt_spanner_row { #gzbgzhlwxt .gt_spanner_row {
border-bottom-style: hidden; border-bottom-style: hidden;
} }
#howggqvkiz .gt_group_heading { #gzbgzhlwxt .gt_group_heading {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -1187,7 +1187,7 @@ demonstration of the functions.</p>
text-align: left; text-align: left;
} }
#howggqvkiz .gt_empty_group_heading { #gzbgzhlwxt .gt_empty_group_heading {
padding: 0.5px; padding: 0.5px;
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
@ -1202,15 +1202,15 @@ demonstration of the functions.</p>
vertical-align: middle; vertical-align: middle;
} }
#howggqvkiz .gt_from_md > :first-child { #gzbgzhlwxt .gt_from_md > :first-child {
margin-top: 0; margin-top: 0;
} }
#howggqvkiz .gt_from_md > :last-child { #gzbgzhlwxt .gt_from_md > :last-child {
margin-bottom: 0; margin-bottom: 0;
} }
#howggqvkiz .gt_row { #gzbgzhlwxt .gt_row {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -1229,7 +1229,7 @@ demonstration of the functions.</p>
overflow-x: hidden; overflow-x: hidden;
} }
#howggqvkiz .gt_stub { #gzbgzhlwxt .gt_stub {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -1242,7 +1242,7 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#howggqvkiz .gt_stub_row_group { #gzbgzhlwxt .gt_stub_row_group {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
font-size: 100%; font-size: 100%;
@ -1256,15 +1256,15 @@ demonstration of the functions.</p>
vertical-align: top; vertical-align: top;
} }
#howggqvkiz .gt_row_group_first td { #gzbgzhlwxt .gt_row_group_first td {
border-top-width: 2px; border-top-width: 2px;
} }
#howggqvkiz .gt_row_group_first th { #gzbgzhlwxt .gt_row_group_first th {
border-top-width: 2px; border-top-width: 2px;
} }
#howggqvkiz .gt_summary_row { #gzbgzhlwxt .gt_summary_row {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
text-transform: inherit; text-transform: inherit;
@ -1274,16 +1274,16 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#howggqvkiz .gt_first_summary_row { #gzbgzhlwxt .gt_first_summary_row {
border-top-style: solid; border-top-style: solid;
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
} }
#howggqvkiz .gt_first_summary_row.thick { #gzbgzhlwxt .gt_first_summary_row.thick {
border-top-width: 2px; border-top-width: 2px;
} }
#howggqvkiz .gt_last_summary_row { #gzbgzhlwxt .gt_last_summary_row {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -1293,7 +1293,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#howggqvkiz .gt_grand_summary_row { #gzbgzhlwxt .gt_grand_summary_row {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
text-transform: inherit; text-transform: inherit;
@ -1303,7 +1303,7 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#howggqvkiz .gt_first_grand_summary_row { #gzbgzhlwxt .gt_first_grand_summary_row {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -1313,7 +1313,7 @@ demonstration of the functions.</p>
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
} }
#howggqvkiz .gt_last_grand_summary_row_top { #gzbgzhlwxt .gt_last_grand_summary_row_top {
padding-top: 8px; padding-top: 8px;
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 5px; padding-left: 5px;
@ -1323,11 +1323,11 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#howggqvkiz .gt_striped { #gzbgzhlwxt .gt_striped {
background-color: rgba(128, 128, 128, 0.05); background-color: rgba(128, 128, 128, 0.05);
} }
#howggqvkiz .gt_table_body { #gzbgzhlwxt .gt_table_body {
border-top-style: solid; border-top-style: solid;
border-top-width: 2px; border-top-width: 2px;
border-top-color: #D3D3D3; border-top-color: #D3D3D3;
@ -1336,7 +1336,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3; border-bottom-color: #D3D3D3;
} }
#howggqvkiz .gt_footnotes { #gzbgzhlwxt .gt_footnotes {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
border-bottom-style: none; border-bottom-style: none;
@ -1350,7 +1350,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#howggqvkiz .gt_footnote { #gzbgzhlwxt .gt_footnote {
margin: 0px; margin: 0px;
font-size: 90%; font-size: 90%;
padding-top: 4px; padding-top: 4px;
@ -1359,7 +1359,7 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#howggqvkiz .gt_sourcenotes { #gzbgzhlwxt .gt_sourcenotes {
color: #333333; color: #333333;
background-color: #FFFFFF; background-color: #FFFFFF;
border-bottom-style: none; border-bottom-style: none;
@ -1373,7 +1373,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3; border-right-color: #D3D3D3;
} }
#howggqvkiz .gt_sourcenote { #gzbgzhlwxt .gt_sourcenote {
font-size: 90%; font-size: 90%;
padding-top: 4px; padding-top: 4px;
padding-bottom: 4px; padding-bottom: 4px;
@ -1381,63 +1381,63 @@ demonstration of the functions.</p>
padding-right: 5px; padding-right: 5px;
} }
#howggqvkiz .gt_left { #gzbgzhlwxt .gt_left {
text-align: left; text-align: left;
} }
#howggqvkiz .gt_center { #gzbgzhlwxt .gt_center {
text-align: center; text-align: center;
} }
#howggqvkiz .gt_right { #gzbgzhlwxt .gt_right {
text-align: right; text-align: right;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
#howggqvkiz .gt_font_normal { #gzbgzhlwxt .gt_font_normal {
font-weight: normal; font-weight: normal;
} }
#howggqvkiz .gt_font_bold { #gzbgzhlwxt .gt_font_bold {
font-weight: bold; font-weight: bold;
} }
#howggqvkiz .gt_font_italic { #gzbgzhlwxt .gt_font_italic {
font-style: italic; font-style: italic;
} }
#howggqvkiz .gt_super { #gzbgzhlwxt .gt_super {
font-size: 65%; font-size: 65%;
} }
#howggqvkiz .gt_footnote_marks { #gzbgzhlwxt .gt_footnote_marks {
font-size: 75%; font-size: 75%;
vertical-align: 0.4em; vertical-align: 0.4em;
position: initial; position: initial;
} }
#howggqvkiz .gt_asterisk { #gzbgzhlwxt .gt_asterisk {
font-size: 100%; font-size: 100%;
vertical-align: 0; vertical-align: 0;
} }
#howggqvkiz .gt_indent_1 { #gzbgzhlwxt .gt_indent_1 {
text-indent: 5px; text-indent: 5px;
} }
#howggqvkiz .gt_indent_2 { #gzbgzhlwxt .gt_indent_2 {
text-indent: 10px; text-indent: 10px;
} }
#howggqvkiz .gt_indent_3 { #gzbgzhlwxt .gt_indent_3 {
text-indent: 15px; text-indent: 15px;
} }
#howggqvkiz .gt_indent_4 { #gzbgzhlwxt .gt_indent_4 {
text-indent: 20px; text-indent: 20px;
} }
#howggqvkiz .gt_indent_5 { #gzbgzhlwxt .gt_indent_5 {
text-indent: 25px; text-indent: 25px;
} }
</style> </style>

View File

@ -8,16 +8,17 @@
<meta name="description" content="Forked from REDCapRITS by Paul Egeler and Spectrum Health. <meta name="description" content="Forked from REDCapRITS by Paul Egeler and Spectrum Health.
See &lt;https://github.com/SpectrumHealthResearch/REDCapRITS&gt;. See &lt;https://github.com/SpectrumHealthResearch/REDCapRITS&gt;.
Handles castellated datasets from REDCap projects with repeating instruments. Handles castellated datasets from REDCap projects with repeating instruments.
Assists in splitting raw REDCap data exports to base table and child tables Assists in casting tidy tables from raw REDCap data exports for each
for each repeated instrument. Keeps a focused data export approach, by repeated instrument. Keeps a focused data export approach, by allowing to
allowing to only export required data from the database. only export required data from the database.
REDCap (Research Electronic Data Capture) is a secure, web-based software REDCap (Research Electronic Data Capture) is a secure, web-based software
platform designed to support data capture for research studies, providing platform designed to support data capture for research studies, providing
1) an intuitive interface for validated data capture; 2) audit trails for 1) an intuitive interface for validated data capture; 2) audit trails for
tracking data manipulation and export procedures; 3) automated export tracking data manipulation and export procedures; 3) automated export
procedures for seamless data downloads to common statistical packages; and procedures for seamless data downloads to common statistical packages; and
4) procedures for data integration and interoperability with external sources 4) procedures for data integration and interoperability with external sources
(&lt;doi:10.1016/j.jbi.2008.08.010&gt;; &lt;doi:10.1016/j.jbi.2019.103208&gt;)."> (Harris et al (2009) &lt;doi:10.1016/j.jbi.2008.08.010&gt;;
Harris et al (2019) &lt;doi:10.1016/j.jbi.2019.103208&gt;).">
<title>REDCap Castellated Data Handling • REDCapCAST</title> <title>REDCap Castellated Data Handling • REDCapCAST</title>
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"> <!-- 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="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
@ -33,16 +34,17 @@
<meta property="og:description" content="Forked from REDCapRITS by Paul Egeler and Spectrum Health. <meta property="og:description" content="Forked from REDCapRITS by Paul Egeler and Spectrum Health.
See &lt;https://github.com/SpectrumHealthResearch/REDCapRITS&gt;. See &lt;https://github.com/SpectrumHealthResearch/REDCapRITS&gt;.
Handles castellated datasets from REDCap projects with repeating instruments. Handles castellated datasets from REDCap projects with repeating instruments.
Assists in splitting raw REDCap data exports to base table and child tables Assists in casting tidy tables from raw REDCap data exports for each
for each repeated instrument. Keeps a focused data export approach, by repeated instrument. Keeps a focused data export approach, by allowing to
allowing to only export required data from the database. only export required data from the database.
REDCap (Research Electronic Data Capture) is a secure, web-based software REDCap (Research Electronic Data Capture) is a secure, web-based software
platform designed to support data capture for research studies, providing platform designed to support data capture for research studies, providing
1) an intuitive interface for validated data capture; 2) audit trails for 1) an intuitive interface for validated data capture; 2) audit trails for
tracking data manipulation and export procedures; 3) automated export tracking data manipulation and export procedures; 3) automated export
procedures for seamless data downloads to common statistical packages; and procedures for seamless data downloads to common statistical packages; and
4) procedures for data integration and interoperability with external sources 4) procedures for data integration and interoperability with external sources
(&lt;doi:10.1016/j.jbi.2008.08.010&gt;; &lt;doi:10.1016/j.jbi.2019.103208&gt;)."> (Harris et al (2009) &lt;doi:10.1016/j.jbi.2008.08.010&gt;;
Harris et al (2019) &lt;doi:10.1016/j.jbi.2019.103208&gt;).">
<meta property="og:image" content="/logo.png"> <meta property="og:image" content="/logo.png">
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>

View File

@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~ pkgdown_sha: ~
articles: articles:
Introduction: Introduction.html Introduction: Introduction.html
last_built: 2023-06-02T12:29Z last_built: 2023-06-05T06:39Z

View File

@ -156,17 +156,19 @@ instruments only or for all forms.</p></dd>
<span class="r-in"><span></span></span> <span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># You must set the working directory first since the REDCap data export</span></span></span> <span class="r-in"><span><span class="co"># You must set the working directory first since the REDCap data export</span></span></span>
<span class="r-in"><span><span class="co"># script contains relative file references.</span></span></span> <span class="r-in"><span><span class="co"># script contains relative file references.</span></span></span>
<span class="r-in"><span><span class="va">old</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">getwd</a></span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">setwd</a></span><span class="op">(</span><span class="st">"/path/to/data/"</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">setwd</a></span><span class="op">(</span><span class="st">"/path/to/data/"</span><span class="op">)</span></span></span>
<span class="r-in"><span></span></span> <span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Run the data export script supplied by REDCap.</span></span></span> <span class="r-in"><span><span class="co"># Run the data export script supplied by REDCap.</span></span></span>
<span class="r-in"><span><span class="co"># This will create a data.frame of your records called 'data'</span></span></span> <span class="r-in"><span><span class="co"># This will create a data.frame of your records called 'data'</span></span></span>
<span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/source.html" class="external-link">source</a></span><span class="op">(</span><span class="st">"ExampleProject_R_2018-06-03_1700.r"</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/source.html" class="external-link">source</a></span><span class="op">(</span><span class="st">"ExampleProject_R_2018-06-03_1700.r"</span><span class="op">)</span></span></span>
<span class="r-in"><span></span></span> <span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Get the metadata</span></span></span> <span class="r-in"><span><span class="co"># Get the metadatan</span></span></span>
<span class="r-in"><span><span class="va">metadata</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/utils/read.table.html" class="external-link">read.csv</a></span><span class="op">(</span><span class="st">"ExampleProject_DataDictionary_2018-06-03.csv"</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="va">metadata</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/utils/read.table.html" class="external-link">read.csv</a></span><span class="op">(</span><span class="st">"ExampleProject_DataDictionary_2018-06-03.csv"</span><span class="op">)</span></span></span>
<span class="r-in"><span></span></span> <span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Split the tables</span></span></span> <span class="r-in"><span><span class="co"># Split the tables</span></span></span>
<span class="r-in"><span><span class="fu">REDCapRITS</span><span class="fu">::</span><span class="fu">REDCap_split</span><span class="op">(</span><span class="va">data</span>, <span class="va">metadata</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="fu">REDCapRITS</span><span class="fu">::</span><span class="fu">REDCap_split</span><span class="op">(</span><span class="va">data</span>, <span class="va">metadata</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">setwd</a></span><span class="op">(</span><span class="va">old</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="op">}</span></span></span> <span class="r-in"><span><span class="op">}</span></span></span>
</code></pre></div> </code></pre></div>
</div> </div>

File diff suppressed because one or more lines are too long

View File

@ -12,12 +12,14 @@ REDCap
REDCapR REDCapR
REDCapRITS REDCapRITS
SpectrumHealthResearch SpectrumHealthResearch
al
api api
demonstrational demonstrational
descirption descirption
desireable desireable
doi doi
dplyr dplyr
et
immprovements immprovements
jbi jbi
mRS mRS
@ -28,44 +30,3 @@ og
thorugh thorugh
tidyverse tidyverse
uri uri
agdamsbo
Andreas
au
aut
BugReports
clin
covr
cre
Damsbo
dk
doi
dplyr
egeler
Egeler
Gammelgaard
github
Hmisc
https
httr
jbi
jsonlite
keyring
knitr
LazyData
ORCID
paul
RCurl
readr
REDCap,49
redcapcast
REDCapCAST
REDCapR
REDCapRITS
rmarkdown
RoxygenNote
spectrumhealth
SpectrumHealthResearch
testthat
tidyr
tidyselect
VignetteBuilder

View File

@ -84,17 +84,19 @@ REDCapRITS::REDCap_split(records, metadata)
# You must set the working directory first since the REDCap data export # You must set the working directory first since the REDCap data export
# script contains relative file references. # script contains relative file references.
old <- getwd()
setwd("/path/to/data/") setwd("/path/to/data/")
# Run the data export script supplied by REDCap. # Run the data export script supplied by REDCap.
# This will create a data.frame of your records called 'data' # This will create a data.frame of your records called 'data'
source("ExampleProject_R_2018-06-03_1700.r") source("ExampleProject_R_2018-06-03_1700.r")
# Get the metadata # Get the metadatan
metadata <- read.csv("ExampleProject_DataDictionary_2018-06-03.csv") metadata <- read.csv("ExampleProject_DataDictionary_2018-06-03.csv")
# Split the tables # Split the tables
REDCapRITS::REDCap_split(data, metadata) REDCapRITS::REDCap_split(data, metadata)
setwd(old)
} }
} }
\author{ \author{