mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-21 21:10:22 +01:00
Compare commits
2 Commits
9bdac4614c
...
5db3428323
Author | SHA1 | Date | |
---|---|---|---|
|
5db3428323 | ||
|
75bb5f4091 |
@ -98,23 +98,23 @@ demonstration of the functions.</p>
|
||||
</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">|></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="sixickflnc" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
|
||||
<style>#sixickflnc table {
|
||||
<div id="lazukxlxwb" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
|
||||
<style>#lazukxlxwb 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;
|
||||
}
|
||||
|
||||
#sixickflnc thead, #sixickflnc tbody, #sixickflnc tfoot, #sixickflnc tr, #sixickflnc td, #sixickflnc th {
|
||||
#lazukxlxwb thead, #lazukxlxwb tbody, #lazukxlxwb tfoot, #lazukxlxwb tr, #lazukxlxwb td, #lazukxlxwb th {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
#sixickflnc p {
|
||||
#lazukxlxwb p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_table {
|
||||
#lazukxlxwb .gt_table {
|
||||
display: table;
|
||||
border-collapse: collapse;
|
||||
line-height: normal;
|
||||
@ -140,12 +140,12 @@ demonstration of the functions.</p>
|
||||
border-left-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_caption {
|
||||
#lazukxlxwb .gt_caption {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_title {
|
||||
#lazukxlxwb .gt_title {
|
||||
color: #333333;
|
||||
font-size: 125%;
|
||||
font-weight: initial;
|
||||
@ -157,7 +157,7 @@ demonstration of the functions.</p>
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_subtitle {
|
||||
#lazukxlxwb .gt_subtitle {
|
||||
color: #333333;
|
||||
font-size: 85%;
|
||||
font-weight: initial;
|
||||
@ -169,7 +169,7 @@ demonstration of the functions.</p>
|
||||
border-top-width: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_heading {
|
||||
#lazukxlxwb .gt_heading {
|
||||
background-color: #FFFFFF;
|
||||
text-align: center;
|
||||
border-bottom-color: #FFFFFF;
|
||||
@ -181,13 +181,13 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_bottom_border {
|
||||
#lazukxlxwb .gt_bottom_border {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_col_headings {
|
||||
#lazukxlxwb .gt_col_headings {
|
||||
border-top-style: solid;
|
||||
border-top-width: 2px;
|
||||
border-top-color: #D3D3D3;
|
||||
@ -202,7 +202,7 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_col_heading {
|
||||
#lazukxlxwb .gt_col_heading {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -222,7 +222,7 @@ demonstration of the functions.</p>
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_column_spanner_outer {
|
||||
#lazukxlxwb .gt_column_spanner_outer {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -234,15 +234,15 @@ demonstration of the functions.</p>
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_column_spanner_outer:first-child {
|
||||
#lazukxlxwb .gt_column_spanner_outer:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_column_spanner_outer:last-child {
|
||||
#lazukxlxwb .gt_column_spanner_outer:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_column_spanner {
|
||||
#lazukxlxwb .gt_column_spanner {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
border-bottom-color: #D3D3D3;
|
||||
@ -254,11 +254,11 @@ demonstration of the functions.</p>
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_spanner_row {
|
||||
#lazukxlxwb .gt_spanner_row {
|
||||
border-bottom-style: hidden;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_group_heading {
|
||||
#lazukxlxwb .gt_group_heading {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -284,7 +284,7 @@ demonstration of the functions.</p>
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_empty_group_heading {
|
||||
#lazukxlxwb .gt_empty_group_heading {
|
||||
padding: 0.5px;
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
@ -299,15 +299,15 @@ demonstration of the functions.</p>
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_from_md > :first-child {
|
||||
#lazukxlxwb .gt_from_md > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_from_md > :last-child {
|
||||
#lazukxlxwb .gt_from_md > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_row {
|
||||
#lazukxlxwb .gt_row {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -326,7 +326,7 @@ demonstration of the functions.</p>
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_stub {
|
||||
#lazukxlxwb .gt_stub {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -339,7 +339,7 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_stub_row_group {
|
||||
#lazukxlxwb .gt_stub_row_group {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -353,15 +353,15 @@ demonstration of the functions.</p>
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_row_group_first td {
|
||||
#lazukxlxwb .gt_row_group_first td {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_row_group_first th {
|
||||
#lazukxlxwb .gt_row_group_first th {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_summary_row {
|
||||
#lazukxlxwb .gt_summary_row {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
text-transform: inherit;
|
||||
@ -371,16 +371,16 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_first_summary_row {
|
||||
#lazukxlxwb .gt_first_summary_row {
|
||||
border-top-style: solid;
|
||||
border-top-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_first_summary_row.thick {
|
||||
#lazukxlxwb .gt_first_summary_row.thick {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_last_summary_row {
|
||||
#lazukxlxwb .gt_last_summary_row {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -390,7 +390,7 @@ demonstration of the functions.</p>
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_grand_summary_row {
|
||||
#lazukxlxwb .gt_grand_summary_row {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
text-transform: inherit;
|
||||
@ -400,7 +400,7 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_first_grand_summary_row {
|
||||
#lazukxlxwb .gt_first_grand_summary_row {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -410,7 +410,7 @@ demonstration of the functions.</p>
|
||||
border-top-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_last_grand_summary_row_top {
|
||||
#lazukxlxwb .gt_last_grand_summary_row_top {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -420,11 +420,11 @@ demonstration of the functions.</p>
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_striped {
|
||||
#lazukxlxwb .gt_striped {
|
||||
background-color: rgba(128, 128, 128, 0.05);
|
||||
}
|
||||
|
||||
#sixickflnc .gt_table_body {
|
||||
#lazukxlxwb .gt_table_body {
|
||||
border-top-style: solid;
|
||||
border-top-width: 2px;
|
||||
border-top-color: #D3D3D3;
|
||||
@ -433,7 +433,7 @@ demonstration of the functions.</p>
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_footnotes {
|
||||
#lazukxlxwb .gt_footnotes {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
border-bottom-style: none;
|
||||
@ -447,7 +447,7 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_footnote {
|
||||
#lazukxlxwb .gt_footnote {
|
||||
margin: 0px;
|
||||
font-size: 90%;
|
||||
padding-top: 4px;
|
||||
@ -456,7 +456,7 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_sourcenotes {
|
||||
#lazukxlxwb .gt_sourcenotes {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
border-bottom-style: none;
|
||||
@ -470,7 +470,7 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_sourcenote {
|
||||
#lazukxlxwb .gt_sourcenote {
|
||||
font-size: 90%;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
@ -478,63 +478,63 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_left {
|
||||
#lazukxlxwb .gt_left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_center {
|
||||
#lazukxlxwb .gt_center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_right {
|
||||
#lazukxlxwb .gt_right {
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_font_normal {
|
||||
#lazukxlxwb .gt_font_normal {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_font_bold {
|
||||
#lazukxlxwb .gt_font_bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_font_italic {
|
||||
#lazukxlxwb .gt_font_italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_super {
|
||||
#lazukxlxwb .gt_super {
|
||||
font-size: 65%;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_footnote_marks {
|
||||
#lazukxlxwb .gt_footnote_marks {
|
||||
font-size: 75%;
|
||||
vertical-align: 0.4em;
|
||||
position: initial;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_asterisk {
|
||||
#lazukxlxwb .gt_asterisk {
|
||||
font-size: 100%;
|
||||
vertical-align: 0;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_indent_1 {
|
||||
#lazukxlxwb .gt_indent_1 {
|
||||
text-indent: 5px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_indent_2 {
|
||||
#lazukxlxwb .gt_indent_2 {
|
||||
text-indent: 10px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_indent_3 {
|
||||
#lazukxlxwb .gt_indent_3 {
|
||||
text-indent: 15px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_indent_4 {
|
||||
#lazukxlxwb .gt_indent_4 {
|
||||
text-indent: 20px;
|
||||
}
|
||||
|
||||
#sixickflnc .gt_indent_5 {
|
||||
#lazukxlxwb .gt_indent_5 {
|
||||
text-indent: 25px;
|
||||
}
|
||||
</style>
|
||||
@ -561,6 +561,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -587,6 +588,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -612,6 +614,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -637,6 +640,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -662,6 +666,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -687,6 +692,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -712,6 +718,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -737,6 +744,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -762,6 +770,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -787,6 +796,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -812,6 +822,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -837,6 +848,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -862,6 +874,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -887,6 +900,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -912,6 +926,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -937,6 +952,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -962,6 +978,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -987,6 +1004,7 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -1012,6 +1030,33 @@ demonstration of the functions.</p>
|
||||
<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>
|
||||
@ -1020,23 +1065,23 @@ demonstration of the functions.</p>
|
||||
</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">|></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="lpuybuuknr" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
|
||||
<style>#lpuybuuknr table {
|
||||
<div id="gdjijuhtzu" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
|
||||
<style>#gdjijuhtzu 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;
|
||||
}
|
||||
|
||||
#lpuybuuknr thead, #lpuybuuknr tbody, #lpuybuuknr tfoot, #lpuybuuknr tr, #lpuybuuknr td, #lpuybuuknr th {
|
||||
#gdjijuhtzu thead, #gdjijuhtzu tbody, #gdjijuhtzu tfoot, #gdjijuhtzu tr, #gdjijuhtzu td, #gdjijuhtzu th {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
#lpuybuuknr p {
|
||||
#gdjijuhtzu p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_table {
|
||||
#gdjijuhtzu .gt_table {
|
||||
display: table;
|
||||
border-collapse: collapse;
|
||||
line-height: normal;
|
||||
@ -1062,12 +1107,12 @@ demonstration of the functions.</p>
|
||||
border-left-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_caption {
|
||||
#gdjijuhtzu .gt_caption {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_title {
|
||||
#gdjijuhtzu .gt_title {
|
||||
color: #333333;
|
||||
font-size: 125%;
|
||||
font-weight: initial;
|
||||
@ -1079,7 +1124,7 @@ demonstration of the functions.</p>
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_subtitle {
|
||||
#gdjijuhtzu .gt_subtitle {
|
||||
color: #333333;
|
||||
font-size: 85%;
|
||||
font-weight: initial;
|
||||
@ -1091,7 +1136,7 @@ demonstration of the functions.</p>
|
||||
border-top-width: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_heading {
|
||||
#gdjijuhtzu .gt_heading {
|
||||
background-color: #FFFFFF;
|
||||
text-align: center;
|
||||
border-bottom-color: #FFFFFF;
|
||||
@ -1103,13 +1148,13 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_bottom_border {
|
||||
#gdjijuhtzu .gt_bottom_border {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_col_headings {
|
||||
#gdjijuhtzu .gt_col_headings {
|
||||
border-top-style: solid;
|
||||
border-top-width: 2px;
|
||||
border-top-color: #D3D3D3;
|
||||
@ -1124,7 +1169,7 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_col_heading {
|
||||
#gdjijuhtzu .gt_col_heading {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -1144,7 +1189,7 @@ demonstration of the functions.</p>
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_column_spanner_outer {
|
||||
#gdjijuhtzu .gt_column_spanner_outer {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -1156,15 +1201,15 @@ demonstration of the functions.</p>
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_column_spanner_outer:first-child {
|
||||
#gdjijuhtzu .gt_column_spanner_outer:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_column_spanner_outer:last-child {
|
||||
#gdjijuhtzu .gt_column_spanner_outer:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_column_spanner {
|
||||
#gdjijuhtzu .gt_column_spanner {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
border-bottom-color: #D3D3D3;
|
||||
@ -1176,11 +1221,11 @@ demonstration of the functions.</p>
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_spanner_row {
|
||||
#gdjijuhtzu .gt_spanner_row {
|
||||
border-bottom-style: hidden;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_group_heading {
|
||||
#gdjijuhtzu .gt_group_heading {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -1206,7 +1251,7 @@ demonstration of the functions.</p>
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_empty_group_heading {
|
||||
#gdjijuhtzu .gt_empty_group_heading {
|
||||
padding: 0.5px;
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
@ -1221,15 +1266,15 @@ demonstration of the functions.</p>
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_from_md > :first-child {
|
||||
#gdjijuhtzu .gt_from_md > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_from_md > :last-child {
|
||||
#gdjijuhtzu .gt_from_md > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_row {
|
||||
#gdjijuhtzu .gt_row {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -1248,7 +1293,7 @@ demonstration of the functions.</p>
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_stub {
|
||||
#gdjijuhtzu .gt_stub {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -1261,7 +1306,7 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_stub_row_group {
|
||||
#gdjijuhtzu .gt_stub_row_group {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
font-size: 100%;
|
||||
@ -1275,15 +1320,15 @@ demonstration of the functions.</p>
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_row_group_first td {
|
||||
#gdjijuhtzu .gt_row_group_first td {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_row_group_first th {
|
||||
#gdjijuhtzu .gt_row_group_first th {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_summary_row {
|
||||
#gdjijuhtzu .gt_summary_row {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
text-transform: inherit;
|
||||
@ -1293,16 +1338,16 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_first_summary_row {
|
||||
#gdjijuhtzu .gt_first_summary_row {
|
||||
border-top-style: solid;
|
||||
border-top-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_first_summary_row.thick {
|
||||
#gdjijuhtzu .gt_first_summary_row.thick {
|
||||
border-top-width: 2px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_last_summary_row {
|
||||
#gdjijuhtzu .gt_last_summary_row {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -1312,7 +1357,7 @@ demonstration of the functions.</p>
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_grand_summary_row {
|
||||
#gdjijuhtzu .gt_grand_summary_row {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
text-transform: inherit;
|
||||
@ -1322,7 +1367,7 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_first_grand_summary_row {
|
||||
#gdjijuhtzu .gt_first_grand_summary_row {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -1332,7 +1377,7 @@ demonstration of the functions.</p>
|
||||
border-top-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_last_grand_summary_row_top {
|
||||
#gdjijuhtzu .gt_last_grand_summary_row_top {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 5px;
|
||||
@ -1342,11 +1387,11 @@ demonstration of the functions.</p>
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_striped {
|
||||
#gdjijuhtzu .gt_striped {
|
||||
background-color: rgba(128, 128, 128, 0.05);
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_table_body {
|
||||
#gdjijuhtzu .gt_table_body {
|
||||
border-top-style: solid;
|
||||
border-top-width: 2px;
|
||||
border-top-color: #D3D3D3;
|
||||
@ -1355,7 +1400,7 @@ demonstration of the functions.</p>
|
||||
border-bottom-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_footnotes {
|
||||
#gdjijuhtzu .gt_footnotes {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
border-bottom-style: none;
|
||||
@ -1369,7 +1414,7 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_footnote {
|
||||
#gdjijuhtzu .gt_footnote {
|
||||
margin: 0px;
|
||||
font-size: 90%;
|
||||
padding-top: 4px;
|
||||
@ -1378,7 +1423,7 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_sourcenotes {
|
||||
#gdjijuhtzu .gt_sourcenotes {
|
||||
color: #333333;
|
||||
background-color: #FFFFFF;
|
||||
border-bottom-style: none;
|
||||
@ -1392,7 +1437,7 @@ demonstration of the functions.</p>
|
||||
border-right-color: #D3D3D3;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_sourcenote {
|
||||
#gdjijuhtzu .gt_sourcenote {
|
||||
font-size: 90%;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
@ -1400,63 +1445,63 @@ demonstration of the functions.</p>
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_left {
|
||||
#gdjijuhtzu .gt_left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_center {
|
||||
#gdjijuhtzu .gt_center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_right {
|
||||
#gdjijuhtzu .gt_right {
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_font_normal {
|
||||
#gdjijuhtzu .gt_font_normal {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_font_bold {
|
||||
#gdjijuhtzu .gt_font_bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_font_italic {
|
||||
#gdjijuhtzu .gt_font_italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_super {
|
||||
#gdjijuhtzu .gt_super {
|
||||
font-size: 65%;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_footnote_marks {
|
||||
#gdjijuhtzu .gt_footnote_marks {
|
||||
font-size: 75%;
|
||||
vertical-align: 0.4em;
|
||||
position: initial;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_asterisk {
|
||||
#gdjijuhtzu .gt_asterisk {
|
||||
font-size: 100%;
|
||||
vertical-align: 0;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_indent_1 {
|
||||
#gdjijuhtzu .gt_indent_1 {
|
||||
text-indent: 5px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_indent_2 {
|
||||
#gdjijuhtzu .gt_indent_2 {
|
||||
text-indent: 10px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_indent_3 {
|
||||
#gdjijuhtzu .gt_indent_3 {
|
||||
text-indent: 15px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_indent_4 {
|
||||
#gdjijuhtzu .gt_indent_4 {
|
||||
text-indent: 20px;
|
||||
}
|
||||
|
||||
#lpuybuuknr .gt_indent_5 {
|
||||
#gdjijuhtzu .gt_indent_5 {
|
||||
text-indent: 25px;
|
||||
}
|
||||
</style>
|
||||
@ -1811,28 +1856,28 @@ Note: as opposed to the build in datediff() this handles counting years as integ
|
||||
<code class="sourceCode R"><span><span class="va">list</span> <span class="op"><-</span></span>
|
||||
<span> <span class="fu"><a href="../reference/REDCap_split.html">REDCap_split</a></span><span class="op">(</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 class="op">)</span></span>
|
||||
<span> forms <span class="op">=</span> <span class="st">"repeating"</span><span class="op">)</span><span class="op">|></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">#> List of 2</span></span>
|
||||
<span><span class="co">#> $ :'data.frame': 9 obs. of 17 variables:</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:9] 1 2 2 3 3 3 4 4 5</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name : chr [1:9] "inclusion" "inclusion" "follow1" "inclusion" ...</span></span>
|
||||
<span><span class="co">#> ..$ cpr : chr [1:9] "1203401OB4" "0102342303" NA "2301569823" ...</span></span>
|
||||
<span><span class="co">#> ..$ inclusion : Date[1:9], format: "2023-03-13" "2023-03-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ dob : Date[1:9], format: "1940-03-12" "1934-02-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ age : num [1:9] 83 89.1 NA 66.1 NA ...</span></span>
|
||||
<span><span class="co">#> ..$ age_integer : num [1:9] 83 89 NA 66 NA NA 117 NA 126</span></span>
|
||||
<span><span class="co">#> ..$ sex : chr [1:9] "female" "male" NA "male" ...</span></span>
|
||||
<span><span class="co">#> ..$ cohabitation : chr [1:9] "Yes" "Yes" NA "No" ...</span></span>
|
||||
<span><span class="co">#> ..$ hypertension : chr [1:9] "No" "No" NA "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ diabetes : chr [1:9] "Yes" "No" NA "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ region : chr [1:9] "East" "South" NA "North" ...</span></span>
|
||||
<span><span class="co">#> ..$ baseline_data_start_complete: chr [1:9] "Incomplete" "Incomplete" NA "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_assessed : chr [1:9] "Yes" "Yes" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_date : Date[1:9], format: "2023-03-13" "2023-03-07" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_score : num [1:9] 1 1 3 NA 2 1 NA NA NA</span></span>
|
||||
<span><span class="co">#> ..$ mrs_complete : chr [1:9] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ new_event:'data.frame': 9 obs. of 6 variables:</span></span>
|
||||
<span><span class="co">#> $ : tibble [10 × 17] (S3: tbl_df/tbl/data.frame)</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:10] 1 2 2 3 3 3 4 4 5 6</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name : chr [1:10] "inclusion" "inclusion" "follow1" "inclusion" ...</span></span>
|
||||
<span><span class="co">#> ..$ cpr : chr [1:10] "1203401OB4" "0102342303" NA "2301569823" ...</span></span>
|
||||
<span><span class="co">#> ..$ inclusion : Date[1:10], format: "2023-03-13" "2023-03-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ dob : Date[1:10], format: "1940-03-12" "1934-02-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ age : num [1:10] 83 89.1 NA 66.1 NA ...</span></span>
|
||||
<span><span class="co">#> ..$ age_integer : num [1:10] 83 89 NA 66 NA NA 117 NA 126 91</span></span>
|
||||
<span><span class="co">#> ..$ sex : chr [1:10] "female" "male" NA "male" ...</span></span>
|
||||
<span><span class="co">#> ..$ cohabitation : chr [1:10] "Yes" "Yes" NA "No" ...</span></span>
|
||||
<span><span class="co">#> ..$ hypertension : chr [1:10] "No" "No" NA "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ diabetes : chr [1:10] "Yes" "No" NA "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ region : chr [1:10] "East" "South" NA "North" ...</span></span>
|
||||
<span><span class="co">#> ..$ baseline_data_start_complete: chr [1:10] "Incomplete" "Incomplete" NA "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_assessed : chr [1:10] "Yes" "Yes" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_date : Date[1:10], format: "2023-03-13" "2023-03-07" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_score : num [1:10] 1 1 3 NA 2 1 NA NA NA NA</span></span>
|
||||
<span><span class="co">#> ..$ mrs_complete : chr [1:10] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ new_event: tibble [9 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:9] 2 3 3 3 3 3 4 4 4</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name : chr [1:9] "follow1" "follow1" "follow1" "follow2" ...</span></span>
|
||||
<span><span class="co">#> ..$ redcap_repeat_instrument: chr [1:9] "new_event" "new_event" "new_event" "new_event" ...</span></span>
|
||||
@ -1843,31 +1888,31 @@ Note: as opposed to the build in datediff() this handles counting years as integ
|
||||
<code class="sourceCode R"><span><span class="va">list</span> <span class="op"><-</span></span>
|
||||
<span> <span class="fu"><a href="../reference/REDCap_split.html">REDCap_split</a></span><span class="op">(</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 class="op">)</span></span>
|
||||
<span> forms <span class="op">=</span> <span class="st">"all"</span><span class="op">)</span> <span class="op">|></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">#> List of 3</span></span>
|
||||
<span><span class="co">#> $ baseline_data_start:'data.frame': 9 obs. of 13 variables:</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:9] 1 2 2 3 3 3 4 4 5</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name : chr [1:9] "inclusion" "inclusion" "follow1" "inclusion" ...</span></span>
|
||||
<span><span class="co">#> ..$ cpr : chr [1:9] "1203401OB4" "0102342303" NA "2301569823" ...</span></span>
|
||||
<span><span class="co">#> ..$ inclusion : Date[1:9], format: "2023-03-13" "2023-03-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ dob : Date[1:9], format: "1940-03-12" "1934-02-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ age : num [1:9] 83 89.1 NA 66.1 NA ...</span></span>
|
||||
<span><span class="co">#> ..$ age_integer : num [1:9] 83 89 NA 66 NA NA 117 NA 126</span></span>
|
||||
<span><span class="co">#> ..$ sex : chr [1:9] "female" "male" NA "male" ...</span></span>
|
||||
<span><span class="co">#> ..$ cohabitation : chr [1:9] "Yes" "Yes" NA "No" ...</span></span>
|
||||
<span><span class="co">#> ..$ hypertension : chr [1:9] "No" "No" NA "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ diabetes : chr [1:9] "Yes" "No" NA "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ region : chr [1:9] "East" "South" NA "North" ...</span></span>
|
||||
<span><span class="co">#> ..$ baseline_data_start_complete: chr [1:9] "Incomplete" "Incomplete" NA "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ mrs :'data.frame': 9 obs. of 6 variables:</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:9] 1 2 2 3 3 3 4 4 5</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name: chr [1:9] "inclusion" "inclusion" "follow1" "inclusion" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_assessed : chr [1:9] "Yes" "Yes" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_date : Date[1:9], format: "2023-03-13" "2023-03-07" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_score : num [1:9] 1 1 3 NA 2 1 NA NA NA</span></span>
|
||||
<span><span class="co">#> ..$ mrs_complete : chr [1:9] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ new_event :'data.frame': 9 obs. of 6 variables:</span></span>
|
||||
<span><span class="co">#> $ baseline_data_start: tibble [6 × 13] (S3: tbl_df/tbl/data.frame)</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:6] 1 2 3 4 5 6</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name : chr [1:6] "inclusion" "inclusion" "inclusion" "inclusion" ...</span></span>
|
||||
<span><span class="co">#> ..$ cpr : chr [1:6] "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
|
||||
<span><span class="co">#> ..$ inclusion : Date[1:6], format: "2023-03-13" "2023-03-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ dob : Date[1:6], format: "1940-03-12" "1934-02-01" ...</span></span>
|
||||
<span><span class="co">#> ..$ age : num [1:6] 83 89.1 66.1 117.9 126.2 ...</span></span>
|
||||
<span><span class="co">#> ..$ age_integer : num [1:6] 83 89 66 117 126 91</span></span>
|
||||
<span><span class="co">#> ..$ sex : chr [1:6] "female" "male" "male" "female" ...</span></span>
|
||||
<span><span class="co">#> ..$ cohabitation : chr [1:6] "Yes" "Yes" "No" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ hypertension : chr [1:6] "No" "No" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ diabetes : chr [1:6] "Yes" "No" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ region : chr [1:6] "East" "South" "North" NA ...</span></span>
|
||||
<span><span class="co">#> ..$ baseline_data_start_complete: chr [1:6] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ mrs : tibble [5 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:5] 1 2 2 3 3</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name: chr [1:5] "inclusion" "inclusion" "follow1" "follow1" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_assessed : chr [1:5] "Yes" "Yes" "Yes" "Yes" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_date : Date[1:5], format: "2023-03-13" "2023-03-07" ...</span></span>
|
||||
<span><span class="co">#> ..$ mrs_score : num [1:5] 1 1 3 2 1</span></span>
|
||||
<span><span class="co">#> ..$ mrs_complete : chr [1:5] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ new_event : tibble [9 × 6] (S3: tbl_df/tbl/data.frame)</span></span>
|
||||
<span><span class="co">#> ..$ record_id : num [1:9] 2 3 3 3 3 3 4 4 4</span></span>
|
||||
<span><span class="co">#> ..$ redcap_event_name : chr [1:9] "follow1" "follow1" "follow1" "follow2" ...</span></span>
|
||||
<span><span class="co">#> ..$ redcap_repeat_instrument: chr [1:9] "new_event" "new_event" "new_event" "new_event" ...</span></span>
|
||||
@ -1894,7 +1939,46 @@ approach.</p>
|
||||
<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="co"># redcap_wider(ds)</span></span></code></pre></div>
|
||||
<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">|></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">#> Joining with `by = join_by(record_id)`</span></span>
|
||||
<span><span class="co">#> Joining with `by = join_by(record_id)`</span></span>
|
||||
<span><span class="co">#> 'data.frame': 6 obs. of 36 variables:</span></span>
|
||||
<span><span class="co">#> $ record_id : num 1 2 3 4 5 6</span></span>
|
||||
<span><span class="co">#> $ cpr : chr "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
|
||||
<span><span class="co">#> $ inclusion : Date, format: "2023-03-13" "2023-03-01" ...</span></span>
|
||||
<span><span class="co">#> $ dob : Date, format: "1940-03-12" "1934-02-01" ...</span></span>
|
||||
<span><span class="co">#> $ age : num 83 89.1 66.1 117.9 126.2 ...</span></span>
|
||||
<span><span class="co">#> $ age_integer : num 83 89 66 117 126 91</span></span>
|
||||
<span><span class="co">#> $ sex : chr "female" "male" "male" "female" ...</span></span>
|
||||
<span><span class="co">#> $ cohabitation : chr "Yes" "Yes" "No" NA ...</span></span>
|
||||
<span><span class="co">#> $ hypertension : chr "No" "No" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> $ diabetes : chr "Yes" "No" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> $ region : chr "East" "South" "North" NA ...</span></span>
|
||||
<span><span class="co">#> $ baseline_data_start_complete: chr "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ mrs_assessed_inclusion : chr "Yes" "Yes" NA NA ...</span></span>
|
||||
<span><span class="co">#> $ mrs_assessed_follow1 : chr NA "Yes" "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> $ mrs_assessed_follow2 : chr NA NA "Yes" NA ...</span></span>
|
||||
<span><span class="co">#> $ mrs_date_inclusion : Date, format: "2023-03-13" "2023-03-07" ...</span></span>
|
||||
<span><span class="co">#> $ mrs_date_follow1 : Date, format: NA "2023-03-09" ...</span></span>
|
||||
<span><span class="co">#> $ mrs_date_follow2 : Date, format: NA NA ...</span></span>
|
||||
<span><span class="co">#> $ mrs_score_inclusion : num 1 1 NA NA NA NA</span></span>
|
||||
<span><span class="co">#> $ mrs_score_follow1 : num NA 3 2 NA NA NA</span></span>
|
||||
<span><span class="co">#> $ mrs_score_follow2 : num NA NA 1 NA NA NA</span></span>
|
||||
<span><span class="co">#> $ mrs_complete_inclusion : chr "Incomplete" "Incomplete" NA NA ...</span></span>
|
||||
<span><span class="co">#> $ mrs_complete_follow1 : chr NA "Incomplete" "Incomplete" NA ...</span></span>
|
||||
<span><span class="co">#> $ mrs_complete_follow2 : chr NA NA "Incomplete" NA ...</span></span>
|
||||
<span><span class="co">#> $ event_type_1_follow1 : chr NA "TIA" "AIS" NA ...</span></span>
|
||||
<span><span class="co">#> $ event_type_1_follow2 : chr NA NA "ICH" "AIS" ...</span></span>
|
||||
<span><span class="co">#> $ new_event_complete_1_follow1: chr NA "Incomplete" "Incomplete" NA ...</span></span>
|
||||
<span><span class="co">#> $ new_event_complete_1_follow2: chr NA NA "Incomplete" "Complete" ...</span></span>
|
||||
<span><span class="co">#> $ event_type_2_follow1 : chr NA NA "ICH" NA ...</span></span>
|
||||
<span><span class="co">#> $ event_type_2_follow2 : chr NA NA "TIA" "ICH" ...</span></span>
|
||||
<span><span class="co">#> $ event_type_3_follow1 : chr NA NA NA NA ...</span></span>
|
||||
<span><span class="co">#> $ event_type_3_follow2 : chr NA NA "AIS" "Unknown" ...</span></span>
|
||||
<span><span class="co">#> $ new_event_complete_2_follow1: chr NA NA "Incomplete" NA ...</span></span>
|
||||
<span><span class="co">#> $ new_event_complete_2_follow2: chr NA NA "Incomplete" "Incomplete" ...</span></span>
|
||||
<span><span class="co">#> $ new_event_complete_3_follow1: chr NA NA NA NA ...</span></span>
|
||||
<span><span class="co">#> $ 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"><h2>On this page</h2>
|
||||
</nav></aside>
|
||||
|
@ -55,7 +55,8 @@
|
||||
<div class="section level4">
|
||||
<h4 id="functions-24-2-1">Functions<a class="anchor" aria-label="anchor" href="#functions-24-2-1"></a></h4>
|
||||
<ul><li><p>Fix: <code><a href="../reference/ds2dd.html">ds2dd()</a></code>: uses correct default dd column names. Will be deprecated.</p></li>
|
||||
<li><p>Fix: <code><a href="../reference/easy_redcap.html">easy_redcap()</a></code>: fixed to actually allow project naming. also specifically asks for uri.</p></li>
|
||||
<li><p>Fix: <code><a href="../reference/easy_redcap.html">easy_redcap()</a></code>: fixed to actually allow project naming. also specifically asks for uri. widening updated to work.</p></li>
|
||||
<li><p>Fix: <code><a href="../reference/redcap_wider.html">redcap_wider()</a></code>: updated to accept more formats and allow handling of simple projects without repeating instruments and not longitudinal.</p></li>
|
||||
<li><p>Fix: <code><a href="../reference/read_redcap_tables.html">read_redcap_tables()</a></code>: now handles non-longitudinal project without repeatable instruments.</p></li>
|
||||
<li><p>NEW: <code><a href="../reference/ds2dd_detailed.html">ds2dd_detailed()</a></code>: extension of the <code><a href="../reference/ds2dd.html">ds2dd()</a></code>, which serves to preserve as much metadata as possible automatically. Depends on a group of helper functions also introduced. Of special note is the <code><a href="../reference/guess_time_only_filter.html">guess_time_only_filter()</a></code>, which will try to guess which columns/variables should be formatted as time only formats. Supports hms time format. DETAILED INSTRUCTION AND VIGNETTE IS PENDING.</p></li>
|
||||
<li><p>NEW: <code><a href="../reference/read_redcap_instrument.html">read_redcap_instrument()</a></code> convenience function to retrieve complete instrument. Goes a little against the focused approach. DETAILED INSTRUCTION IS PENDING.</p></li>
|
||||
|
@ -3,7 +3,7 @@ pkgdown: 2.0.7
|
||||
pkgdown_sha: ~
|
||||
articles:
|
||||
Introduction: Introduction.html
|
||||
last_built: 2024-02-05T20:45Z
|
||||
last_built: 2024-02-06T13:38Z
|
||||
urls:
|
||||
reference: https://agdamsbo.github.io/REDCapCAST/reference
|
||||
article: https://agdamsbo.github.io/REDCapCAST/articles
|
||||
|
@ -87,9 +87,9 @@
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">d2w</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">2</span><span class="op">:</span><span class="fl">8</span>,<span class="fl">21</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">d2w</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">2</span><span class="op">:</span><span class="fl">8</span>, <span class="fl">21</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "two" "three" "four" "five" "six" "seven" "eight" "21" </span>
|
||||
<span class="r-in"><span><span class="fu">d2w</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span><span class="fl">2</span><span class="op">:</span><span class="fl">7</span>,<span class="fl">3</span><span class="op">:</span><span class="fl">8</span>,<span class="fl">1</span><span class="op">)</span>,lang<span class="op">=</span><span class="st">"da"</span>,neutrum<span class="op">=</span><span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">d2w</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span><span class="fl">2</span><span class="op">:</span><span class="fl">7</span>, <span class="fl">3</span><span class="op">:</span><span class="fl">8</span>, <span class="fl">1</span><span class="op">)</span>, lang <span class="op">=</span> <span class="st">"da"</span>, neutrum <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> X2.7 X3.8 X1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 to tre et</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 tre fire et</span>
|
||||
@ -100,7 +100,7 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co">## If everything=T, also larger numbers are reduced.</span></span></span>
|
||||
<span class="r-in"><span><span class="co">## Elements in the list are same length as input</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">d2w</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fl">2</span><span class="op">:</span><span class="fl">8</span>,<span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">2</span>,<span class="fl">6</span>,<span class="fl">4</span>,<span class="fl">23</span><span class="op">)</span>,<span class="fl">2</span><span class="op">)</span>, everything<span class="op">=</span><span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">d2w</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fl">2</span><span class="op">:</span><span class="fl">8</span>, <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">2</span>, <span class="fl">6</span>, <span class="fl">4</span>, <span class="fl">23</span><span class="op">)</span>, <span class="fl">2</span><span class="op">)</span>, everything <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[1]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "two" "three" "four" "five" "six" "seven" "eight"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
|
@ -147,8 +147,9 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 19 mrs_score basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 20 mrs_complete basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 21 event_datetime basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 event_type basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 new_event_complete basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 event_age basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 event_type basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 24 new_event_complete basis NA text</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> field_label select_choices_or_calculations field_note</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 record_id NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 redcap_event_name NA NA</span>
|
||||
@ -171,8 +172,9 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 19 mrs_score NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 20 mrs_complete NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 21 event_datetime NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 event_type NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 new_event_complete NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 event_age NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 event_type NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 24 new_event_complete NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text_validation_type_or_show_slider_number text_validation_min</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 NA NA</span>
|
||||
@ -197,6 +199,7 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 21 NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 24 NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text_validation_max identifier branching_logic required_field</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 NA NA NA NA</span>
|
||||
@ -221,6 +224,7 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 21 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 24 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> custom_alignment question_number matrix_group_name matrix_ranking</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 NA NA NA NA</span>
|
||||
@ -245,6 +249,7 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 21 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 24 NA NA NA NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> field_annotation</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 NA</span>
|
||||
@ -269,6 +274,7 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 21 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 23 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 24 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`Column names`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "record_id" "redcap_event_name" </span>
|
||||
@ -281,8 +287,8 @@ REDCapCAST::metadata_names.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [15] "region" "baseline_data_start_complete"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [17] "mrs_assessed" "mrs_date" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] "mrs_score" "mrs_complete" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] "event_datetime" "event_type" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [23] "new_event_complete" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] "event_datetime" "event_age" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [23] "event_type" "new_event_complete" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -157,71 +157,80 @@ Please, do always inspect the data dictionary before upload.</p>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">data</span> <span class="op"><-</span> <span class="va">redcapcast_data</span></span></span>
|
||||
<span class="r-in"><span><span class="va">data</span> <span class="op">|></span> <span class="fu">ds2dd_detailed</span><span class="op">(</span>validate.time <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $is.POSIX</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> inclusion_time event_datetime</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 12:38:49 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 10:38:57 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 NA <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 NA 2024-01-18 12:49:42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 12:01:07 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 NA <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 NA <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 NA 2024-01-18 12:49:58</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 NA 2024-01-18 12:50:01</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 NA 2024-01-18 12:50:05</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 NA 2024-01-18 12:50:07</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 12 NA 2024-01-18 12:50:09</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 13 20:39:19 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 14 NA <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 15 NA 2024-01-18 12:50:19</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 16 NA 2024-01-18 12:50:22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 17 NA 2024-01-18 12:50:24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 18 08:50:31 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 19 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> inclusion_time event_datetime </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><time></span> <span style="color: #949494; font-style: italic;"><dttm></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 12<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>49 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 10<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>57 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:49:42</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 12<span style="color: #949494;">:</span>01<span style="color: #949494;">:</span>07 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:49:58</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:01</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:05</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:07</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:09</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">13</span> 20<span style="color: #949494;">:</span>39<span style="color: #949494;">:</span>19 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">14</span> <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">15</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:19</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">16</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:22</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">17</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:50:24</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">18</span> 08<span style="color: #949494;">:</span>50<span style="color: #949494;">:</span>31 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">19</span> 08<span style="color: #949494;">:</span>49<span style="color: #949494;">:</span>28 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $is.datetime</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> event_datetime</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 2024-01-18 12:49:42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 2024-01-18 12:49:58</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 2024-01-18 12:50:01</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 2024-01-18 12:50:05</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 2024-01-18 12:50:07</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 12 2024-01-18 12:50:09</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 13 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 14 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 15 2024-01-18 12:50:19</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 16 2024-01-18 12:50:22</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 17 2024-01-18 12:50:24</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 18 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 19 × 1</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> event_datetime </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><dttm></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2024-01-18 <span style="color: #949494;">12:49:42</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2024-01-18 <span style="color: #949494;">12:49:58</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2024-01-18 <span style="color: #949494;">12:50:01</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2024-01-18 <span style="color: #949494;">12:50:05</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> 2024-01-18 <span style="color: #949494;">12:50:07</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> 2024-01-18 <span style="color: #949494;">12:50:09</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">13</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">14</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">15</span> 2024-01-18 <span style="color: #949494;">12:50:19</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">16</span> 2024-01-18 <span style="color: #949494;">12:50:22</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">17</span> 2024-01-18 <span style="color: #949494;">12:50:24</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">18</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">19</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $is.time_only</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 19 × 1</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> inclusion_time</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 12:38:49</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 10:38:57</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 12:01:07</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 12 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 13 20:39:19</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 14 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 15 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 16 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 17 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 18 08:50:31</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><time></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 12<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>49 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 10<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>57 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 12<span style="color: #949494;">:</span>01<span style="color: #949494;">:</span>07 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">13</span> 20<span style="color: #949494;">:</span>39<span style="color: #949494;">:</span>19 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">14</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">15</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">16</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">17</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">18</span> 08<span style="color: #949494;">:</span>50<span style="color: #949494;">:</span>31 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">19</span> 08<span style="color: #949494;">:</span>49<span style="color: #949494;">:</span>28 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-in"><span><span class="va">data</span> <span class="op">|></span> <span class="fu">ds2dd_detailed</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $data</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 18 × 23</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 19 × 24</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> record_id redcap_event_name redcap_repeat_instrument redcap_repeat_instance</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 1 inclusion <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span>
|
||||
@ -242,15 +251,16 @@ Please, do always inspect the data dictionary before upload.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">16</span> 4 follow2 New Event (?) 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">17</span> 4 follow2 New Event (?) 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">18</span> 5 inclusion <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 19 more variables: cpr <chr>, inclusion <date>, inclusion_time <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">19</span> 6 inclusion <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 20 more variables: cpr <chr>, inclusion <date>, inclusion_time <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># dob <date>, age <dbl>, age_integer <dbl>, sex <chr>, cohabitation <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># hypertension <chr>, diabetes <chr>, region <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># baseline_data_start_complete <chr>, mrs_assessed <chr>, mrs_date <date>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># mrs_score <dbl>, mrs_complete <chr>, event_datetime <dttm>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># event_type <chr>, new_event_complete <chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># event_age <lgl>, event_type <chr>, new_event_complete <chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $meta</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 23 × 18</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 24 × 18</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> field_name form_name section_header field_type field_label </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> record_id data <span style="color: #BB0000;">NA</span> text record_id </span>
|
||||
@ -263,7 +273,7 @@ Please, do always inspect the data dictionary before upload.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> dob data <span style="color: #BB0000;">NA</span> text dob </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> age data <span style="color: #BB0000;">NA</span> text age </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> age_integer data <span style="color: #BB0000;">NA</span> text age_integer </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 13 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 14 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 13 more variables: select_choices_or_calculations <lgl>, field_note <lgl>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># text_validation_type_or_show_slider_number <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># text_validation_min <lgl>, text_validation_max <lgl>, identifier <lgl>,</span></span>
|
||||
|
@ -111,14 +111,14 @@ event description. Can take any column from data set.</p></dd>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 2 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> SUMMARY DTSTART DTEND LOCATION UID </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><glue></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-05 <span style="color: #949494;">20:45:57</span> 2024-02-05 <span style="color: #949494;">22:45:57</span> 111 ical-6058ef88-8df2-…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ID 3 [A] 2024-02-07 <span style="color: #949494;">20:45:57</span> 2024-02-07 <span style="color: #949494;">22:45:57</span> 111 ical-8d9bc2f4-09ef-…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-06 <span style="color: #949494;">13:38:12</span> 2024-02-06 <span style="color: #949494;">15:38:12</span> 111 ical-6058ef88-8df2-…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ID 3 [A] 2024-02-08 <span style="color: #949494;">13:38:12</span> 2024-02-08 <span style="color: #949494;">15:38:12</span> 111 ical-8d9bc2f4-09ef-…</span>
|
||||
<span class="r-in"><span><span class="va">df</span> <span class="op">|></span> <span class="fu">ds2ical</span><span class="op">(</span>summary.glue.string <span class="op">=</span> <span class="st">"ID {id} [{assessor}] {note}"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 2 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> SUMMARY DTSTART DTEND LOCATION UID </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><glue></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-05 <span style="color: #949494;">20:45:57</span> 2024-02-05 <span style="color: #949494;">22:45:57</span> 111 ical-8be1a95c-5…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ID 3 [A] OBS 2024-02-07 <span style="color: #949494;">20:45:57</span> 2024-02-07 <span style="color: #949494;">22:45:57</span> 111 ical-5a05f23b-f…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> ID 1 [A] 2024-02-06 <span style="color: #949494;">13:38:12</span> 2024-02-06 <span style="color: #949494;">15:38:12</span> 111 ical-8be1a95c-5…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ID 3 [A] OBS 2024-02-08 <span style="color: #949494;">13:38:12</span> 2024-02-08 <span style="color: #949494;">15:38:12</span> 111 ical-5a05f23b-f…</span>
|
||||
<span class="r-in"><span><span class="co"># Export .ics file: (not run)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">ical</span> <span class="op"><-</span> <span class="va">df</span> <span class="op">|></span> <span class="fu">ds2ical</span><span class="op">(</span><span class="va">start</span>, <span class="va">end</span>, <span class="va">location</span>, description.glue.string <span class="op">=</span> <span class="st">"{note}"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># ical |> calendar::ic_write(file=here::here("calendar.ics"))</span></span></span>
|
||||
|
@ -64,7 +64,7 @@
|
||||
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||
<dl><dt>project.name</dt>
|
||||
<dd><p>The name of the current project (for key storage with
|
||||
`keyring::key_set()`)</p></dd>
|
||||
`keyring::key_set()`, using the default keyring)</p></dd>
|
||||
|
||||
|
||||
<dt>widen.data</dt>
|
||||
|
95
reference/get_id_name.html
Normal file
95
reference/get_id_name.html
Normal file
@ -0,0 +1,95 @@
|
||||
<!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"><meta name="description" content="Get the id name"><title>Get the id name — get_id_name • 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><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Get the id name — get_id_name"><meta property="og:description" content="Get the id name"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/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]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]--></head><body>
|
||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||
|
||||
|
||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><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.2.1</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="active nav-item">
|
||||
<a class="nav-link" href="../reference/index.html">Reference</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
||||
</li>
|
||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
||||
|
||||
<ul class="navbar-nav"><li class="nav-item">
|
||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
||||
<span class="fab fa fab fa-github fa-lg"></span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</ul></div>
|
||||
|
||||
|
||||
</div>
|
||||
</nav><div class="container template-reference-topic">
|
||||
<div class="row">
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.png" class="logo" alt=""><h1>Get the id name</h1>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
||||
<div class="d-none name"><code>get_id_name.Rd</code></div>
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Get the id name</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">get_id_name</span><span class="op">(</span><span class="va">data</span><span class="op">)</span></span></code></pre></div>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||
<dl><dt>data</dt>
|
||||
<dd><p>data frame or list</p></dd>
|
||||
|
||||
</dl></div>
|
||||
<div class="section level2">
|
||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||
|
||||
|
||||
<p>character vector</p>
|
||||
</div>
|
||||
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
</nav></aside></div>
|
||||
|
||||
|
||||
<footer><div class="pkgdown-footer-left">
|
||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
||||
</div>
|
||||
|
||||
<div class="pkgdown-footer-right">
|
||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
||||
</div>
|
||||
|
||||
</footer></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
|
@ -106,31 +106,37 @@ has to be converted to character class before REDCap upload.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "inclusion_time"</span>
|
||||
<span class="r-in"><span><span class="va">data</span> <span class="op">|></span> <span class="fu">guess_time_only_filter</span><span class="op">(</span>validate <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span> <span class="op">|></span> <span class="fu"><a href="https://rdrr.io/r/base/lapply.html" class="external-link">lapply</a></span><span class="op">(</span><span class="va">head</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $is.POSIX</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> inclusion_time event_datetime</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 12:38:49 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 10:38:57 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 NA <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 NA 2024-01-18 12:49:42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 12:01:07 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 NA <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 6 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> inclusion_time event_datetime </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><time></span> <span style="color: #949494; font-style: italic;"><dttm></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 12<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>49 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 10<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>57 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> <span style="color: #BB0000;">NA</span> 2024-01-18 <span style="color: #949494;">12:49:42</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> 12<span style="color: #949494;">:</span>01<span style="color: #949494;">:</span>07 <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">6</span> <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $is.datetime</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> event_datetime</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 2024-01-18 12:49:42</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 <NA></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 6 × 1</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> event_datetime </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><dttm></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2024-01-18 <span style="color: #949494;">12:49:42</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">6</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $is.time_only</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 6 × 1</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> inclusion_time</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 12:38:49</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 10:38:57</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 12:01:07</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><time></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 12<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>49 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 10<span style="color: #949494;">:</span>38<span style="color: #949494;">:</span>57 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> 12<span style="color: #949494;">:</span>01<span style="color: #949494;">:</span>07 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">6</span> <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -107,6 +107,11 @@
|
||||
<dd>Retrieve project API key if stored, if not, set and retrieve</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="get_id_name.html">get_id_name()</a></code>
|
||||
</dt>
|
||||
<dd>Get the id name</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="guess_time_only_filter.html">guess_time_only_filter()</a></code>
|
||||
</dt>
|
||||
<dd>Try at determining which are true time only variables</dd>
|
||||
@ -117,6 +122,11 @@
|
||||
<dd>Change "hms" to "character" for REDCap upload.</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="is.repeated_longitudinal.html">is.repeated_longitudinal()</a></code>
|
||||
</dt>
|
||||
<dd>Test if repeatable or longitudinal</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="mark_complete.html">mark_complete()</a></code>
|
||||
</dt>
|
||||
<dd>Completion marking based on completed upload</dd>
|
||||
|
113
reference/is.repeated_longitudinal.html
Normal file
113
reference/is.repeated_longitudinal.html
Normal file
@ -0,0 +1,113 @@
|
||||
<!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"><meta name="description" content="Test if repeatable or longitudinal"><title>Test if repeatable or longitudinal — is.repeated_longitudinal • 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><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Test if repeatable or longitudinal — is.repeated_longitudinal"><meta property="og:description" content="Test if repeatable or longitudinal"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/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]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]--></head><body>
|
||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||
|
||||
|
||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><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.2.1</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="active nav-item">
|
||||
<a class="nav-link" href="../reference/index.html">Reference</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
||||
</li>
|
||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
||||
|
||||
<ul class="navbar-nav"><li class="nav-item">
|
||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
||||
<span class="fab fa fab fa-github fa-lg"></span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</ul></div>
|
||||
|
||||
|
||||
</div>
|
||||
</nav><div class="container template-reference-topic">
|
||||
<div class="row">
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.png" class="logo" alt=""><h1>Test if repeatable or longitudinal</h1>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
||||
<div class="d-none name"><code>is.repeated_longitudinal.Rd</code></div>
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Test if repeatable or longitudinal</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">is.repeated_longitudinal</span><span class="op">(</span></span>
|
||||
<span> <span class="va">data</span>,</span>
|
||||
<span> generics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>, <span class="st">"redcap_repeat_instance"</span><span class="op">)</span></span>
|
||||
<span><span class="op">)</span></span></code></pre></div>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||
<dl><dt>data</dt>
|
||||
<dd><p>data set</p></dd>
|
||||
|
||||
|
||||
<dt>generics</dt>
|
||||
<dd><p>default is "redcap_event_name", "redcap_repeat_instrument"
|
||||
and "redcap_repeat_instance"</p></dd>
|
||||
|
||||
</dl></div>
|
||||
<div class="section level2">
|
||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||
|
||||
|
||||
<p>logical</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">is.repeated_longitudinal</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"record_id"</span>, <span class="st">"age"</span>, <span class="st">"record_id"</span>, <span class="st">"gender"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in is.repeated_longitudinal(c("record_id", "age", "record_id", "gender")):</span> could not find function "is.repeated_longitudinal"</span>
|
||||
<span class="r-in"><span><span class="fu">is.repeated_longitudinal</span><span class="op">(</span><span class="va">redcapcast_data</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in is.repeated_longitudinal(redcapcast_data):</span> could not find function "is.repeated_longitudinal"</span>
|
||||
<span class="r-in"><span><span class="fu">is.repeated_longitudinal</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="va">redcapcast_data</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in is.repeated_longitudinal(list(redcapcast_data)):</span> could not find function "is.repeated_longitudinal"</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
</nav></aside></div>
|
||||
|
||||
|
||||
<footer><div class="pkgdown-footer-left">
|
||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
||||
</div>
|
||||
|
||||
<div class="pkgdown-footer-right">
|
||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
||||
</div>
|
||||
|
||||
</footer></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
|
@ -77,8 +77,7 @@ instruments.</p>
|
||||
<span> events <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> forms <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> raw_or_label <span class="op">=</span> <span class="st">"label"</span>,</span>
|
||||
<span> split_forms <span class="op">=</span> <span class="st">"all"</span>,</span>
|
||||
<span> generics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>, <span class="st">"redcap_repeat_instance"</span><span class="op">)</span></span>
|
||||
<span> split_forms <span class="op">=</span> <span class="st">"all"</span></span>
|
||||
<span><span class="op">)</span></span></code></pre></div>
|
||||
</div>
|
||||
|
||||
|
@ -61,7 +61,7 @@ Handles longitudinal projects, but not yet repeated instruments.</p>
|
||||
<div class="section level2">
|
||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">redcap_wider</span><span class="op">(</span></span>
|
||||
<span> <span class="va">list</span>,</span>
|
||||
<span> <span class="va">data</span>,</span>
|
||||
<span> event.glue <span class="op">=</span> <span class="st">"{.value}_{redcap_event_name}"</span>,</span>
|
||||
<span> inst.glue <span class="op">=</span> <span class="st">"{.value}_{redcap_repeat_instance}"</span></span>
|
||||
<span><span class="op">)</span></span></code></pre></div>
|
||||
@ -69,7 +69,7 @@ Handles longitudinal projects, but not yet repeated instruments.</p>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||
<dl><dt>list</dt>
|
||||
<dl><dt>data</dt>
|
||||
<dd><p>A list of data frames.</p></dd>
|
||||
|
||||
|
||||
@ -90,17 +90,57 @@ Handles longitudinal projects, but not yet repeated instruments.</p>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">list</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="co"># Longitudinal</span></span></span>
|
||||
<span class="r-in"><span><span class="va">list1</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span>, <span class="st">"followup"</span>, <span class="st">"followup"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>age <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">25</span>,<span class="fl">26</span>,<span class="fl">27</span>,<span class="fl">28</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/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>gender <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"male"</span>, <span class="st">"female"</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">redcap_wider</span><span class="op">(</span><span class="va">list</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">redcap_wider</span><span class="op">(</span><span class="va">list1</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Joining with `by = join_by(record_id)`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> record_id age_baseline age_followup gender</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1 25 27 male</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 2 26 28 female</span>
|
||||
<span class="r-in"><span><span class="co"># Simpel with two instruments</span></span></span>
|
||||
<span class="r-in"><span><span class="va">list2</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>age <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">25</span>,<span class="fl">26</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/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>gender <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"male"</span>, <span class="st">"female"</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">redcap_wider</span><span class="op">(</span><span class="va">list2</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Joining with `by = join_by(record_id)`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> record_id age gender</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1 25 male</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 2 26 female</span>
|
||||
<span class="r-in"><span><span class="co"># Simple with single instrument</span></span></span>
|
||||
<span class="r-in"><span><span class="va">list3</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>age <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">25</span>,<span class="fl">26</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">redcap_wider</span><span class="op">(</span><span class="va">list3</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> record_id age</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1 25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 2 26</span>
|
||||
<span class="r-in"><span><span class="co"># Longitudinal with repeatable instruments</span></span></span>
|
||||
<span class="r-in"><span><span class="va">list4</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span>, <span class="st">"followup"</span>, <span class="st">"followup"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>age <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">25</span>,<span class="fl">26</span>,<span class="fl">27</span>,<span class="fl">28</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/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">1</span>,<span class="fl">1</span>,<span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">2</span>,<span class="fl">2</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span>, <span class="st">"followup"</span>, <span class="st">"followup"</span>,</span></span>
|
||||
<span class="r-in"><span><span class="st">"baseline"</span>, <span class="st">"baseline"</span>, <span class="st">"followup"</span>, <span class="st">"followup"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_repeat_instrument <span class="op">=</span> <span class="st">"walk"</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_repeat_instance<span class="op">=</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>dist <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">40</span>, <span class="fl">32</span>, <span class="fl">25</span>, <span class="fl">33</span>, <span class="fl">28</span>, <span class="fl">24</span>, <span class="fl">23</span>, <span class="fl">36</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/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span>gender <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"male"</span>, <span class="st">"female"</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">redcap_wider</span><span class="op">(</span><span class="va">list4</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Joining with `by = join_by(record_id)`</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Joining with `by = join_by(record_id)`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> record_id age_baseline age_followup dist_1_baseline dist_1_followup</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1 25 27 40 25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 2 26 28 28 23</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> dist_2_baseline dist_2_followup gender</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 32 33 male</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 24 36 female</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -59,7 +59,7 @@
|
||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">sanitize_split</span><span class="op">(</span></span>
|
||||
<span> <span class="va">l</span>,</span>
|
||||
<span> generic.names <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"record_id"</span>, <span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>,</span>
|
||||
<span> generic.names <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>,</span>
|
||||
<span> <span class="st">"redcap_repeat_instance"</span><span class="op">)</span></span>
|
||||
<span><span class="op">)</span></span></code></pre></div>
|
||||
</div>
|
||||
|
@ -99,10 +99,12 @@ be included in each form</p></dd>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># Create the fields</span></span></span>
|
||||
<span class="r-in"><span><span class="va">fields</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/matrix.html" class="external-link">matrix</a></span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"form_a_name"</span>, <span class="st">"form_a"</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> <span class="st">"form_a_name"</span>, <span class="st">"form_a"</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="st">"form_a_age"</span>, <span class="st">"form_a"</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="st">"form_b_name"</span>, <span class="st">"form_b"</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="st">"form_b_gender"</span>, <span class="st">"form_b"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="st">"form_b_gender"</span>, <span class="st">"form_b"</span></span></span>
|
||||
<span class="r-in"><span> <span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span> ncol <span class="op">=</span> <span class="fl">2</span>, byrow <span class="op">=</span> <span class="cn">TRUE</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
|
@ -95,7 +95,7 @@ easing the split around the defined delimiter, see example.</p>
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">test</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"12 months follow-up"</span>, <span class="st">"3 steps"</span>, <span class="st">"mRS 6 weeks"</span>, <span class="st">"Counting to 231 now"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">strsplitx</span><span class="op">(</span><span class="va">test</span>,<span class="st">"[0-9]"</span>,type<span class="op">=</span><span class="st">"around"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">strsplitx</span><span class="op">(</span><span class="va">test</span>, <span class="st">"[0-9]"</span>, type <span class="op">=</span> <span class="st">"around"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[1]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "1" "2" " months follow-up"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
|
File diff suppressed because one or more lines are too long
@ -48,6 +48,9 @@
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/REDCapCAST/reference/get_api_key.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/REDCapCAST/reference/get_id_name.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/REDCapCAST/reference/guess_time_only_filter.html</loc>
|
||||
</url>
|
||||
@ -57,6 +60,9 @@
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/REDCapCAST/reference/index.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/REDCapCAST/reference/is.repeated_longitudinal.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/REDCapCAST/reference/mark_complete.html</loc>
|
||||
</url>
|
||||
|
Loading…
Reference in New Issue
Block a user