Deploying to gh-pages from @ agdamsbo/REDCapCAST@8bd4d9ade7 🚀

This commit is contained in:
agdamsbo 2023-07-04 14:05:51 +00:00
parent fba6066125
commit 1e38e70d16
24 changed files with 723 additions and 126 deletions

View File

@ -31,7 +31,7 @@
<a class="navbar-brand me-2" href="https://agdamsbo.github.io/REDCapCAST/index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -33,7 +33,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">
@ -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">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="roqtbcohfc" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#roqtbcohfc table {
<div id="xqrchspuoe" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#xqrchspuoe 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;
}
#roqtbcohfc thead, #roqtbcohfc tbody, #roqtbcohfc tfoot, #roqtbcohfc tr, #roqtbcohfc td, #roqtbcohfc th {
#xqrchspuoe thead, #xqrchspuoe tbody, #xqrchspuoe tfoot, #xqrchspuoe tr, #xqrchspuoe td, #xqrchspuoe th {
border-style: none;
}
#roqtbcohfc p {
#xqrchspuoe p {
margin: 0;
padding: 0;
}
#roqtbcohfc .gt_table {
#xqrchspuoe .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
@ -140,12 +140,12 @@ demonstration of the functions.</p>
border-left-color: #D3D3D3;
}
#roqtbcohfc .gt_caption {
#xqrchspuoe .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#roqtbcohfc .gt_title {
#xqrchspuoe .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@ -157,7 +157,7 @@ demonstration of the functions.</p>
border-bottom-width: 0;
}
#roqtbcohfc .gt_subtitle {
#xqrchspuoe .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@ -169,7 +169,7 @@ demonstration of the functions.</p>
border-top-width: 0;
}
#roqtbcohfc .gt_heading {
#xqrchspuoe .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;
}
#roqtbcohfc .gt_bottom_border {
#xqrchspuoe .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#roqtbcohfc .gt_col_headings {
#xqrchspuoe .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;
}
#roqtbcohfc .gt_col_heading {
#xqrchspuoe .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -222,7 +222,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#roqtbcohfc .gt_column_spanner_outer {
#xqrchspuoe .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -234,15 +234,15 @@ demonstration of the functions.</p>
padding-right: 4px;
}
#roqtbcohfc .gt_column_spanner_outer:first-child {
#xqrchspuoe .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#roqtbcohfc .gt_column_spanner_outer:last-child {
#xqrchspuoe .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#roqtbcohfc .gt_column_spanner {
#xqrchspuoe .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%;
}
#roqtbcohfc .gt_spanner_row {
#xqrchspuoe .gt_spanner_row {
border-bottom-style: hidden;
}
#roqtbcohfc .gt_group_heading {
#xqrchspuoe .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -284,7 +284,7 @@ demonstration of the functions.</p>
text-align: left;
}
#roqtbcohfc .gt_empty_group_heading {
#xqrchspuoe .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@ -299,15 +299,15 @@ demonstration of the functions.</p>
vertical-align: middle;
}
#roqtbcohfc .gt_from_md > :first-child {
#xqrchspuoe .gt_from_md > :first-child {
margin-top: 0;
}
#roqtbcohfc .gt_from_md > :last-child {
#xqrchspuoe .gt_from_md > :last-child {
margin-bottom: 0;
}
#roqtbcohfc .gt_row {
#xqrchspuoe .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -326,7 +326,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#roqtbcohfc .gt_stub {
#xqrchspuoe .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -339,7 +339,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#roqtbcohfc .gt_stub_row_group {
#xqrchspuoe .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -353,15 +353,15 @@ demonstration of the functions.</p>
vertical-align: top;
}
#roqtbcohfc .gt_row_group_first td {
#xqrchspuoe .gt_row_group_first td {
border-top-width: 2px;
}
#roqtbcohfc .gt_row_group_first th {
#xqrchspuoe .gt_row_group_first th {
border-top-width: 2px;
}
#roqtbcohfc .gt_summary_row {
#xqrchspuoe .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -371,16 +371,16 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#roqtbcohfc .gt_first_summary_row {
#xqrchspuoe .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#roqtbcohfc .gt_first_summary_row.thick {
#xqrchspuoe .gt_first_summary_row.thick {
border-top-width: 2px;
}
#roqtbcohfc .gt_last_summary_row {
#xqrchspuoe .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;
}
#roqtbcohfc .gt_grand_summary_row {
#xqrchspuoe .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -400,7 +400,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#roqtbcohfc .gt_first_grand_summary_row {
#xqrchspuoe .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;
}
#roqtbcohfc .gt_last_grand_summary_row_top {
#xqrchspuoe .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;
}
#roqtbcohfc .gt_striped {
#xqrchspuoe .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#roqtbcohfc .gt_table_body {
#xqrchspuoe .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;
}
#roqtbcohfc .gt_footnotes {
#xqrchspuoe .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -447,7 +447,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#roqtbcohfc .gt_footnote {
#xqrchspuoe .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
@ -456,7 +456,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#roqtbcohfc .gt_sourcenotes {
#xqrchspuoe .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -470,7 +470,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#roqtbcohfc .gt_sourcenote {
#xqrchspuoe .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
@ -478,63 +478,63 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#roqtbcohfc .gt_left {
#xqrchspuoe .gt_left {
text-align: left;
}
#roqtbcohfc .gt_center {
#xqrchspuoe .gt_center {
text-align: center;
}
#roqtbcohfc .gt_right {
#xqrchspuoe .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#roqtbcohfc .gt_font_normal {
#xqrchspuoe .gt_font_normal {
font-weight: normal;
}
#roqtbcohfc .gt_font_bold {
#xqrchspuoe .gt_font_bold {
font-weight: bold;
}
#roqtbcohfc .gt_font_italic {
#xqrchspuoe .gt_font_italic {
font-style: italic;
}
#roqtbcohfc .gt_super {
#xqrchspuoe .gt_super {
font-size: 65%;
}
#roqtbcohfc .gt_footnote_marks {
#xqrchspuoe .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#roqtbcohfc .gt_asterisk {
#xqrchspuoe .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#roqtbcohfc .gt_indent_1 {
#xqrchspuoe .gt_indent_1 {
text-indent: 5px;
}
#roqtbcohfc .gt_indent_2 {
#xqrchspuoe .gt_indent_2 {
text-indent: 10px;
}
#roqtbcohfc .gt_indent_3 {
#xqrchspuoe .gt_indent_3 {
text-indent: 15px;
}
#roqtbcohfc .gt_indent_4 {
#xqrchspuoe .gt_indent_4 {
text-indent: 20px;
}
#roqtbcohfc .gt_indent_5 {
#xqrchspuoe .gt_indent_5 {
text-indent: 25px;
}
</style>
@ -1001,23 +1001,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">|&gt;</span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="ptmfvbkogm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#ptmfvbkogm table {
<div id="fxilkzahuw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#fxilkzahuw 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;
}
#ptmfvbkogm thead, #ptmfvbkogm tbody, #ptmfvbkogm tfoot, #ptmfvbkogm tr, #ptmfvbkogm td, #ptmfvbkogm th {
#fxilkzahuw thead, #fxilkzahuw tbody, #fxilkzahuw tfoot, #fxilkzahuw tr, #fxilkzahuw td, #fxilkzahuw th {
border-style: none;
}
#ptmfvbkogm p {
#fxilkzahuw p {
margin: 0;
padding: 0;
}
#ptmfvbkogm .gt_table {
#fxilkzahuw .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
@ -1043,12 +1043,12 @@ demonstration of the functions.</p>
border-left-color: #D3D3D3;
}
#ptmfvbkogm .gt_caption {
#fxilkzahuw .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#ptmfvbkogm .gt_title {
#fxilkzahuw .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
@ -1060,7 +1060,7 @@ demonstration of the functions.</p>
border-bottom-width: 0;
}
#ptmfvbkogm .gt_subtitle {
#fxilkzahuw .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
@ -1072,7 +1072,7 @@ demonstration of the functions.</p>
border-top-width: 0;
}
#ptmfvbkogm .gt_heading {
#fxilkzahuw .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
@ -1084,13 +1084,13 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ptmfvbkogm .gt_bottom_border {
#fxilkzahuw .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#ptmfvbkogm .gt_col_headings {
#fxilkzahuw .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@ -1105,7 +1105,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ptmfvbkogm .gt_col_heading {
#fxilkzahuw .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1125,7 +1125,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#ptmfvbkogm .gt_column_spanner_outer {
#fxilkzahuw .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1137,15 +1137,15 @@ demonstration of the functions.</p>
padding-right: 4px;
}
#ptmfvbkogm .gt_column_spanner_outer:first-child {
#fxilkzahuw .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#ptmfvbkogm .gt_column_spanner_outer:last-child {
#fxilkzahuw .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#ptmfvbkogm .gt_column_spanner {
#fxilkzahuw .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
@ -1157,11 +1157,11 @@ demonstration of the functions.</p>
width: 100%;
}
#ptmfvbkogm .gt_spanner_row {
#fxilkzahuw .gt_spanner_row {
border-bottom-style: hidden;
}
#ptmfvbkogm .gt_group_heading {
#fxilkzahuw .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1187,7 +1187,7 @@ demonstration of the functions.</p>
text-align: left;
}
#ptmfvbkogm .gt_empty_group_heading {
#fxilkzahuw .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
@ -1202,15 +1202,15 @@ demonstration of the functions.</p>
vertical-align: middle;
}
#ptmfvbkogm .gt_from_md > :first-child {
#fxilkzahuw .gt_from_md > :first-child {
margin-top: 0;
}
#ptmfvbkogm .gt_from_md > :last-child {
#fxilkzahuw .gt_from_md > :last-child {
margin-bottom: 0;
}
#ptmfvbkogm .gt_row {
#fxilkzahuw .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1229,7 +1229,7 @@ demonstration of the functions.</p>
overflow-x: hidden;
}
#ptmfvbkogm .gt_stub {
#fxilkzahuw .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1242,7 +1242,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ptmfvbkogm .gt_stub_row_group {
#fxilkzahuw .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
@ -1256,15 +1256,15 @@ demonstration of the functions.</p>
vertical-align: top;
}
#ptmfvbkogm .gt_row_group_first td {
#fxilkzahuw .gt_row_group_first td {
border-top-width: 2px;
}
#ptmfvbkogm .gt_row_group_first th {
#fxilkzahuw .gt_row_group_first th {
border-top-width: 2px;
}
#ptmfvbkogm .gt_summary_row {
#fxilkzahuw .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -1274,16 +1274,16 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ptmfvbkogm .gt_first_summary_row {
#fxilkzahuw .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#ptmfvbkogm .gt_first_summary_row.thick {
#fxilkzahuw .gt_first_summary_row.thick {
border-top-width: 2px;
}
#ptmfvbkogm .gt_last_summary_row {
#fxilkzahuw .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1293,7 +1293,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#ptmfvbkogm .gt_grand_summary_row {
#fxilkzahuw .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
@ -1303,7 +1303,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ptmfvbkogm .gt_first_grand_summary_row {
#fxilkzahuw .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1313,7 +1313,7 @@ demonstration of the functions.</p>
border-top-color: #D3D3D3;
}
#ptmfvbkogm .gt_last_grand_summary_row_top {
#fxilkzahuw .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
@ -1323,11 +1323,11 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#ptmfvbkogm .gt_striped {
#fxilkzahuw .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#ptmfvbkogm .gt_table_body {
#fxilkzahuw .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
@ -1336,7 +1336,7 @@ demonstration of the functions.</p>
border-bottom-color: #D3D3D3;
}
#ptmfvbkogm .gt_footnotes {
#fxilkzahuw .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -1350,7 +1350,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ptmfvbkogm .gt_footnote {
#fxilkzahuw .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
@ -1359,7 +1359,7 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ptmfvbkogm .gt_sourcenotes {
#fxilkzahuw .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
@ -1373,7 +1373,7 @@ demonstration of the functions.</p>
border-right-color: #D3D3D3;
}
#ptmfvbkogm .gt_sourcenote {
#fxilkzahuw .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
@ -1381,63 +1381,63 @@ demonstration of the functions.</p>
padding-right: 5px;
}
#ptmfvbkogm .gt_left {
#fxilkzahuw .gt_left {
text-align: left;
}
#ptmfvbkogm .gt_center {
#fxilkzahuw .gt_center {
text-align: center;
}
#ptmfvbkogm .gt_right {
#fxilkzahuw .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#ptmfvbkogm .gt_font_normal {
#fxilkzahuw .gt_font_normal {
font-weight: normal;
}
#ptmfvbkogm .gt_font_bold {
#fxilkzahuw .gt_font_bold {
font-weight: bold;
}
#ptmfvbkogm .gt_font_italic {
#fxilkzahuw .gt_font_italic {
font-style: italic;
}
#ptmfvbkogm .gt_super {
#fxilkzahuw .gt_super {
font-size: 65%;
}
#ptmfvbkogm .gt_footnote_marks {
#fxilkzahuw .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#ptmfvbkogm .gt_asterisk {
#fxilkzahuw .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#ptmfvbkogm .gt_indent_1 {
#fxilkzahuw .gt_indent_1 {
text-indent: 5px;
}
#ptmfvbkogm .gt_indent_2 {
#fxilkzahuw .gt_indent_2 {
text-indent: 10px;
}
#ptmfvbkogm .gt_indent_3 {
#fxilkzahuw .gt_indent_3 {
text-indent: 15px;
}
#ptmfvbkogm .gt_indent_4 {
#fxilkzahuw .gt_indent_4 {
text-indent: 20px;
}
#ptmfvbkogm .gt_indent_5 {
#fxilkzahuw .gt_indent_5 {
text-indent: 25px;
}
</style>

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -59,7 +59,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">
@ -50,6 +50,16 @@
<small>Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="23.6.2" id="redcapcast-2362">REDCapCAST 23.6.2<a class="anchor" aria-label="anchor" href="#redcapcast-2362"></a></h2>
<p>This version marks the introduction of a few helper functions to handle database creation.</p>
<div class="section level4">
<h4 id="functions-23-6-2">Functions<a class="anchor" aria-label="anchor" href="#functions-23-6-2"></a></h4>
<ul><li><p>New: <code><a href="../reference/ds2dd.html">ds2dd()</a></code> function migrating from the <code>stRoke</code>-package. Assists in building a data dictionary for REDCap from a dataset.</p></li>
<li><p>New: <code><a href="../reference/strsplitx.html">strsplitx()</a></code> function to ease the string splitting as an extension of <code><a href="https://rdrr.io/r/base/strsplit.html" class="external-link">base::strsplit()</a></code>. Inspiration from <a href="https://stackoverflow.com/a/11014253/21019325" class="external-link uri">https://stackoverflow.com/a/11014253/21019325</a> and <a href="https://www.r-bloggers.com/2018/04/strsplit-but-keeping-the-delimiter/" class="external-link uri">https://www.r-bloggers.com/2018/04/strsplit-but-keeping-the-delimiter/</a>.</p></li>
<li><p>New: <code>d2n()</code> function converts single digits to written numbers. Used to sanitize variable and form names in REDCap database creation. For more universal number to word I would suggest <code>english::word()</code> or <code><a href="https://rdrr.io/pkg/xfun/man/numbers_to_words.html" class="external-link">xfun::numbers_to_words()</a></code>, though I have not been testing these.</p></li>
</ul></div>
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="23.6.1" id="redcapcast-2361">REDCapCAST 23.6.1<a class="anchor" aria-label="anchor" href="#redcapcast-2361"></a></h2><p class="text-muted">CRAN release: 2023-06-06</p>
<div class="section level4">

View File

@ -3,7 +3,7 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
Introduction: Introduction.html
last_built: 2023-07-03T05:55Z
last_built: 2023-07-04T14:05Z
urls:
reference: https://agdamsbo.github.io/REDCapCAST/reference
article: https://agdamsbo.github.io/REDCapCAST/articles

View File

@ -14,7 +14,7 @@ is used to determine which fields should be included in each resultant table."><
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -14,7 +14,7 @@ Trying to make up for different naming conventions."><meta property="og:image" c
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

135
reference/d2w.html Normal file
View File

@ -0,0 +1,135 @@
<!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="Convert single digits to words"><title>Convert single digits to words — d2w • 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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/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="Convert single digits to words — d2w"><meta property="og:description" content="Convert single digits to words"><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="">23.6.2</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>Convert single digits to words</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>d2w.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Convert single digits to words</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">d2w</span><span class="op">(</span><span class="va">x</span>, lang <span class="op">=</span> <span class="st">"en"</span>, neutrum <span class="op">=</span> <span class="cn">FALSE</span>, everything <span class="op">=</span> <span class="cn">FALSE</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>x</dt>
<dd><p>data. Handle vectors, data.frames and lists</p></dd>
<dt>lang</dt>
<dd><p>language. Danish (da) and English (en), Default is "en"</p></dd>
<dt>neutrum</dt>
<dd><p>for numbers depending on counted word</p></dd>
<dt>everything</dt>
<dd><p>flag to also split numbers &gt;9 to single digits</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>returns characters in same format as input</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">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">#&gt;</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-out co"><span class="r-pr">#&gt;</span> X2.7 X3.8 X1</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 to tre et</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 tre fire et</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 fire fem et</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 fem seks et</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 seks syv et</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 syv otte et</span>
<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-out co"><span class="r-pr">#&gt;</span> [[1]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "two" "three" "four" "five" "six" "seven" "eight"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[2]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "two" "six" "four" "two three"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[3]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "two"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-in"><span></span></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>

296
reference/ds2dd.html Normal file
View File

@ -0,0 +1,296 @@
<!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="Migrated from stRoke ds2dd(). Fits better with the functionality of
'REDCapCAST'"><title>Data set to data dictionary function — ds2dd • 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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/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="Data set to data dictionary function — ds2dd"><meta property="og:description" content="Migrated from stRoke ds2dd(). Fits better with the functionality of
'REDCapCAST'"><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="">23.6.2</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>Data set to data dictionary function</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/ds2dd.R" class="external-link"><code>R/ds2dd.R</code></a></small>
<div class="d-none name"><code>ds2dd.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Migrated from stRoke ds2dd(). Fits better with the functionality of
'REDCapCAST'</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">ds2dd</span><span class="op">(</span></span>
<span> <span class="va">ds</span>,</span>
<span> record.id <span class="op">=</span> <span class="st">"record_id"</span>,</span>
<span> form.name <span class="op">=</span> <span class="st">"basis"</span>,</span>
<span> field.type <span class="op">=</span> <span class="st">"text"</span>,</span>
<span> field.label <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> include.column.names <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> metadata <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/names.html" class="external-link">names</a></span><span class="op">(</span><span class="va">redcapcast_meta</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>ds</dt>
<dd><p>data set</p></dd>
<dt>record.id</dt>
<dd><p>name or column number of id variable, moved to first row of
data dictionary, character of integer. Default is "record_id".</p></dd>
<dt>form.name</dt>
<dd><p>vector of form names, character string, length 1 or length
equal to number of variables. Default is "basis".</p></dd>
<dt>field.type</dt>
<dd><p>vector of field types, character string, length 1 or length
equal to number of variables. Default is "text.</p></dd>
<dt>field.label</dt>
<dd><p>vector of form names, character string, length 1 or length
equal to number of variables. Default is NULL and is then identical to field
names.</p></dd>
<dt>include.column.names</dt>
<dd><p>Flag to give detailed output including new
column names for original data set for upload.</p></dd>
<dt>metadata</dt>
<dd><p>Metadata column names. Default is the included
REDCapCAST::redcapcast_data.</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>data.frame or list of data.frame and vector</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="va">redcapcast_data</span><span class="op">$</span><span class="va">record_id</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/seq.html" class="external-link">seq_len</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/nrow.html" class="external-link">nrow</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-in"><span><span class="fu">ds2dd</span><span class="op">(</span><span class="va">redcapcast_data</span>, include.column.names<span class="op">=</span><span class="cn">TRUE</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $DataDictionary</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> field_name form_name section_header field_type</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 record_id basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 redcap_event_name basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 redcap_repeat_instrument basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 redcap_repeat_instance basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 cpr basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 inclusion basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 dob basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 age basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 age_integer basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 sex basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 11 cohabitation basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 12 hypertension basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 13 diabetes basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 14 region basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 15 baseline_data_start_complete basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 16 mrs_assessed basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 17 mrs_date basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 mrs_score basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 mrs_complete basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 event_date basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 event_type basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 new_event_complete basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> field_label select_choices_or_calculations field_note</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 record_id NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 redcap_event_name NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 redcap_repeat_instrument NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 redcap_repeat_instance NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 cpr NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 inclusion NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 dob NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 age NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 age_integer NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 sex NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 11 cohabitation NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 12 hypertension NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 13 diabetes NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 14 region NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 15 baseline_data_start_complete NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 16 mrs_assessed NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 17 mrs_date NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 mrs_score NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 mrs_complete NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 event_date NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 event_type NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 new_event_complete NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> text_validation_type_or_show_slider_number text_validation_min</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 11 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 12 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 13 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 14 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 15 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 16 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 17 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> text_validation_max identifier branching_logic required_field</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 11 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 12 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 13 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 14 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 15 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 16 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 17 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> custom_alignment question_number matrix_group_name matrix_ranking</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 11 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 12 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 13 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 14 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 15 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 16 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 17 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> field_annotation</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 5 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 6 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 7 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 8 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 9 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 10 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 11 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 12 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 13 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 14 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 15 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 16 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 17 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $`Column names`</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "record_id" "redcap_event_name" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [3] "redcap_repeat_instrument" "redcap_repeat_instance" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [5] "cpr" "inclusion" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [7] "dob" "age" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [9] "age_integer" "sex" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [11] "cohabitation" "hypertension" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [13] "diabetes" "region" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [15] "baseline_data_start_complete" "mrs_assessed" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [17] "mrs_date" "mrs_score" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [19] "mrs_complete" "event_date" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [21] "event_type" "new_event_complete" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </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>

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">
@ -72,6 +72,16 @@
<dd>clean_redcap_name</dd>
</dl><dl><dt>
<code><a href="d2w.html">d2w()</a></code>
</dt>
<dd>Convert single digits to words</dd>
</dl><dl><dt>
<code><a href="ds2dd.html">ds2dd()</a></code>
</dt>
<dd>Data set to data dictionary function</dd>
</dl><dl><dt>
<code><a href="focused_metadata.html">focused_metadata()</a></code>
</dt>
<dd>focused_metadata</dd>
@ -110,6 +120,11 @@
<code><a href="split_non_repeating_forms.html">split_non_repeating_forms()</a></code>
</dt>
<dd>Split a data frame into separate tables for each form</dd>
</dl><dl><dt>
<code><a href="strsplitx.html">strsplitx()</a></code>
</dt>
<dd>Extended string splitting</dd>
</dl></div>
</main></div>

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -16,7 +16,7 @@ Works with longitudinal projects with repeating instruments."><meta property="og
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -12,7 +12,7 @@ Handles longitudinal projects, but not yet repeated instruments."><meta property
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -12,7 +12,7 @@ Contains only synthetic data."><meta property="og:image" content="https://agdams
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

View File

@ -10,7 +10,7 @@
<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="">23.6.1</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.2</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">

132
reference/strsplitx.html Normal file
View File

@ -0,0 +1,132 @@
<!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="Can be used as a substitute of the base function. Main claim to fame is
easing the split around the defined delimiter, see example."><title>Extended string splitting — strsplitx • 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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/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="Extended string splitting — strsplitx"><meta property="og:description" content="Can be used as a substitute of the base function. Main claim to fame is
easing the split around the defined delimiter, see example."><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="">23.6.2</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>Extended string splitting</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>strsplitx.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Can be used as a substitute of the base function. Main claim to fame is
easing the split around the defined delimiter, see example.</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">strsplitx</span><span class="op">(</span><span class="va">x</span>, <span class="va">split</span>, type <span class="op">=</span> <span class="st">"classic"</span>, perl <span class="op">=</span> <span class="cn">FALSE</span>, <span class="va">...</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>x</dt>
<dd><p>data</p></dd>
<dt>split</dt>
<dd><p>delimiter</p></dd>
<dt>type</dt>
<dd><p>Split type. Can be c("classic", "before", "after", "around")</p></dd>
<dt>perl</dt>
<dd><p>perl param from strsplit()</p></dd>
<dt>...</dt>
<dd><p>additional parameters are passed to base strsplit handling splits</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>list</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="va">test</span> <span class="op">&lt;-</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-out co"><span class="r-pr">#&gt;</span> [[1]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "1" "2" " months follow-up"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[2]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "3" " steps"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[3]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "mRS " "6" " weeks"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [[4]]</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "Counting to " "2" "3" "1" " now" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </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>

File diff suppressed because one or more lines are too long

View File

@ -27,6 +27,12 @@
<url>
<loc>https://agdamsbo.github.io/REDCapCAST/reference/clean_redcap_name.html</loc>
</url>
<url>
<loc>https://agdamsbo.github.io/REDCapCAST/reference/d2w.html</loc>
</url>
<url>
<loc>https://agdamsbo.github.io/REDCapCAST/reference/ds2dd.html</loc>
</url>
<url>
<loc>https://agdamsbo.github.io/REDCapCAST/reference/focused_metadata.html</loc>
</url>
@ -54,4 +60,7 @@
<url>
<loc>https://agdamsbo.github.io/REDCapCAST/reference/split_non_repeating_forms.html</loc>
</url>
<url>
<loc>https://agdamsbo.github.io/REDCapCAST/reference/strsplitx.html</loc>
</url>
</urlset>