Deploying to gh-pages from @ agdamsbo/REDCapCAST@4e7af7d01f 🚀

This commit is contained in:
agdamsbo 2024-11-18 15:51:34 +00:00
parent bcd4032804
commit c27b9d9129
63 changed files with 3469 additions and 1095 deletions

View File

@ -36,12 +36,12 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="https://agdamsbo.github.io/REDCapCAST/articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="https://agdamsbo.github.io/REDCapCAST/reference/index.html">Reference</a></li> <li class="nav-item"><a class="nav-link" href="https://agdamsbo.github.io/REDCapCAST/reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"> <ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="https://agdamsbo.github.io/REDCapCAST/articles/Database-creation.html">Database-creation</a></li> <li><a class="dropdown-item" href="https://agdamsbo.github.io/REDCapCAST/articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="https://agdamsbo.github.io/REDCapCAST/articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="https://agdamsbo.github.io/REDCapCAST/articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="https://agdamsbo.github.io/REDCapCAST/articles/Shiny-app.html">Shiny-app</a></li>
</ul> </ul>
</li> </li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>

View File

@ -35,12 +35,12 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="active nav-item dropdown"> <li class="active nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"> <ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul> </ul>
</li> </li>
@ -838,840 +838,6 @@ preserve as much information as possible.</p>
<span></span> <span></span>
<span><span class="va">d2</span> <span class="op">|&gt;</span> </span> <span><span class="va">d2</span> <span class="op">|&gt;</span> </span>
<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> <span> <span class="fu">gt</span><span class="fu">::</span><span class="fu"><a href="https://gt.rstudio.com/reference/gt.html" class="external-link">gt</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<div id="eexombwkke" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>#eexombwkke table {
font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#eexombwkke thead, #eexombwkke tbody, #eexombwkke tfoot, #eexombwkke tr, #eexombwkke td, #eexombwkke th {
border-style: none;
}
#eexombwkke p {
margin: 0;
padding: 0;
}
#eexombwkke .gt_table {
display: table;
border-collapse: collapse;
line-height: normal;
margin-left: auto;
margin-right: auto;
color: #333333;
font-size: 16px;
font-weight: normal;
font-style: normal;
background-color: #FFFFFF;
width: auto;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #A8A8A8;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #A8A8A8;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
}
#eexombwkke .gt_caption {
padding-top: 4px;
padding-bottom: 4px;
}
#eexombwkke .gt_title {
color: #333333;
font-size: 125%;
font-weight: initial;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
border-bottom-color: #FFFFFF;
border-bottom-width: 0;
}
#eexombwkke .gt_subtitle {
color: #333333;
font-size: 85%;
font-weight: initial;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 5px;
padding-right: 5px;
border-top-color: #FFFFFF;
border-top-width: 0;
}
#eexombwkke .gt_heading {
background-color: #FFFFFF;
text-align: center;
border-bottom-color: #FFFFFF;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_bottom_border {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_col_headings {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_col_heading {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 6px;
padding-left: 5px;
padding-right: 5px;
overflow-x: hidden;
}
#eexombwkke .gt_column_spanner_outer {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: normal;
text-transform: inherit;
padding-top: 0;
padding-bottom: 0;
padding-left: 4px;
padding-right: 4px;
}
#eexombwkke .gt_column_spanner_outer:first-child {
padding-left: 0;
}
#eexombwkke .gt_column_spanner_outer:last-child {
padding-right: 0;
}
#eexombwkke .gt_column_spanner {
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: bottom;
padding-top: 5px;
padding-bottom: 5px;
overflow-x: hidden;
display: inline-block;
width: 100%;
}
#eexombwkke .gt_spanner_row {
border-bottom-style: hidden;
}
#eexombwkke .gt_group_heading {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
text-align: left;
}
#eexombwkke .gt_empty_group_heading {
padding: 0.5px;
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
vertical-align: middle;
}
#eexombwkke .gt_from_md > :first-child {
margin-top: 0;
}
#eexombwkke .gt_from_md > :last-child {
margin-bottom: 0;
}
#eexombwkke .gt_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
margin: 10px;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #D3D3D3;
border-left-style: none;
border-left-width: 1px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 1px;
border-right-color: #D3D3D3;
vertical-align: middle;
overflow-x: hidden;
}
#eexombwkke .gt_stub {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_stub_row_group {
color: #333333;
background-color: #FFFFFF;
font-size: 100%;
font-weight: initial;
text-transform: inherit;
border-right-style: solid;
border-right-width: 2px;
border-right-color: #D3D3D3;
padding-left: 5px;
padding-right: 5px;
vertical-align: top;
}
#eexombwkke .gt_row_group_first td {
border-top-width: 2px;
}
#eexombwkke .gt_row_group_first th {
border-top-width: 2px;
}
#eexombwkke .gt_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_first_summary_row {
border-top-style: solid;
border-top-color: #D3D3D3;
}
#eexombwkke .gt_first_summary_row.thick {
border-top-width: 2px;
}
#eexombwkke .gt_last_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_grand_summary_row {
color: #333333;
background-color: #FFFFFF;
text-transform: inherit;
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_first_grand_summary_row {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-top-style: double;
border-top-width: 6px;
border-top-color: #D3D3D3;
}
#eexombwkke .gt_last_grand_summary_row_top {
padding-top: 8px;
padding-bottom: 8px;
padding-left: 5px;
padding-right: 5px;
border-bottom-style: double;
border-bottom-width: 6px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_striped {
background-color: rgba(128, 128, 128, 0.05);
}
#eexombwkke .gt_table_body {
border-top-style: solid;
border-top-width: 2px;
border-top-color: #D3D3D3;
border-bottom-style: solid;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
}
#eexombwkke .gt_footnotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_footnote {
margin: 0px;
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_sourcenotes {
color: #333333;
background-color: #FFFFFF;
border-bottom-style: none;
border-bottom-width: 2px;
border-bottom-color: #D3D3D3;
border-left-style: none;
border-left-width: 2px;
border-left-color: #D3D3D3;
border-right-style: none;
border-right-width: 2px;
border-right-color: #D3D3D3;
}
#eexombwkke .gt_sourcenote {
font-size: 90%;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
}
#eexombwkke .gt_left {
text-align: left;
}
#eexombwkke .gt_center {
text-align: center;
}
#eexombwkke .gt_right {
text-align: right;
font-variant-numeric: tabular-nums;
}
#eexombwkke .gt_font_normal {
font-weight: normal;
}
#eexombwkke .gt_font_bold {
font-weight: bold;
}
#eexombwkke .gt_font_italic {
font-style: italic;
}
#eexombwkke .gt_super {
font-size: 65%;
}
#eexombwkke .gt_footnote_marks {
font-size: 75%;
vertical-align: 0.4em;
position: initial;
}
#eexombwkke .gt_asterisk {
font-size: 100%;
vertical-align: 0;
}
#eexombwkke .gt_indent_1 {
text-indent: 5px;
}
#eexombwkke .gt_indent_2 {
text-indent: 10px;
}
#eexombwkke .gt_indent_3 {
text-indent: 15px;
}
#eexombwkke .gt_indent_4 {
text-indent: 20px;
}
#eexombwkke .gt_indent_5 {
text-indent: 25px;
}
#eexombwkke .katex-display {
display: inline-flex !important;
margin-bottom: 0.75em !important;
}
#eexombwkke div.Reactable > div.rt-table > div.rt-thead > div.rt-tr.rt-tr-group-header > div.rt-th-group:after {
height: 0px !important;
}
</style>
<table class="table gt_table" data-quarto-disable-processing="false" data-quarto-bootstrap="false">
<thead><tr class="gt_col_headings">
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_name">field_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="form_name">form_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="section_header">section_header</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_type">field_type</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="field_label">field_label</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="select_choices_or_calculations">select_choices_or_calculations</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="field_note">field_note</th>
<th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="text_validation_type_or_show_slider_number">text_validation_type_or_show_slider_number</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="text_validation_min">text_validation_min</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="text_validation_max">text_validation_max</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="identifier">identifier</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="branching_logic">branching_logic</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="required_field">required_field</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="custom_alignment">custom_alignment</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="question_number">question_number</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="matrix_group_name">matrix_group_name</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="matrix_ranking">matrix_ranking</th>
<th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" scope="col" id="field_annotation">field_annotation</th>
</tr></thead>
<tbody class="gt_table_body">
<tr>
<td headers="field_name" class="gt_row gt_left">record_id</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">record_id</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">cpr</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">cpr</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">inclusion</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">inclusion</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_dmy</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">inclusion_time</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">inclusion_time</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">time_hh_mm_ss</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">dob</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">dob</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_dmy</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">age</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">age</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">number</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">age_integer</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">age_integer</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">number</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">sex</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">sex</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">cohabitation</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">cohabitation</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">hypertension</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">hypertension</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">diabetes</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">diabetes</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">region</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">radio</td>
<td headers="field_label" class="gt_row gt_left">region</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">1, East | 2, North | 3, South</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_assessed</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">mrs_assessed</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_date</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">mrs_date</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">date_dmy</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">mrs_score</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">mrs_score</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">number</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_datetime</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">event_datetime</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">datetime_dmy</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_age</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">event_age</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
<tr>
<td headers="field_name" class="gt_row gt_left">event_type</td>
<td headers="form_name" class="gt_row gt_left">data</td>
<td headers="section_header" class="gt_row gt_center">NA</td>
<td headers="field_type" class="gt_row gt_left">text</td>
<td headers="field_label" class="gt_row gt_left">event_type</td>
<td headers="select_choices_or_calculations" class="gt_row gt_left">NA</td>
<td headers="field_note" class="gt_row gt_center">NA</td>
<td headers="text_validation_type_or_show_slider_number" class="gt_row gt_left">NA</td>
<td headers="text_validation_min" class="gt_row gt_center">NA</td>
<td headers="text_validation_max" class="gt_row gt_center">NA</td>
<td headers="identifier" class="gt_row gt_center">NA</td>
<td headers="branching_logic" class="gt_row gt_center">NA</td>
<td headers="required_field" class="gt_row gt_center">NA</td>
<td headers="custom_alignment" class="gt_row gt_center">NA</td>
<td headers="question_number" class="gt_row gt_center">NA</td>
<td headers="matrix_group_name" class="gt_row gt_center">NA</td>
<td headers="matrix_ranking" class="gt_row gt_center">NA</td>
<td headers="field_annotation" class="gt_row gt_center">NA</td>
</tr>
</tbody>
</table>
</div>
<p>Additional specifications to the DataDictionary can be made manually, <p>Additional specifications to the DataDictionary can be made manually,
or it can be uploaded and modified manually in the graphical user or it can be uploaded and modified manually in the graphical user
interface on the REDCap server.</p> interface on the REDCap server.</p>

2345
articles/REDCapCAST.html Normal file

File diff suppressed because it is too large Load Diff

View File

@ -35,12 +35,12 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="active nav-item dropdown"> <li class="active nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"> <ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul> </ul>
</li> </li>
@ -73,15 +73,307 @@
<p>To make the easiest possible transition from spreadsheet/dataset to <p>To make the easiest possible transition from spreadsheet/dataset to
REDCap, I have created a small Shiny app, which adds a graphical REDCap, I have created a small app, which adds a graphical interface to
interface to the casting of a data dictionary and data upload. Install the casting of a data dictionary and data upload. Install the package
the package and run the app as follows:</p> and launch the app as follows:</p>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="va"><a href="https://github.com/agdamsbo/REDCapCAST" class="external-link">REDCapCAST</a></span><span class="op">)</span></span> <code class="sourceCode R"><span><span class="fu">REDCapCAST</span><span class="fu">::</span><span class="fu"><a href="../reference/shiny_cast.html">shiny_cast</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
<span><span class="fu"><a href="../reference/shiny_cast.html">shiny_cast</a></span><span class="op">(</span><span class="op">)</span></span></code></pre></div> <p>The app primarily wraps one function:
<p>The app will launch in a new window and the interface should be <code><a href="../reference/ds2dd_detailed.html">ds2dd_detailed()</a></code>.</p>
fairly self-explanatory. The app only provides the most basic <div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
functionality, but might be extended in the future.</p> <code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://github.com/agdamsbo/REDCapCAST" class="external-link">REDCapCAST</a></span><span class="op">)</span></span>
<span><span class="va">ds</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/REDCap_split.html">REDCap_split</a></span><span class="op">(</span></span>
<span> records <span class="op">=</span> <span class="va">redcapcast_data</span>,</span>
<span> metadata <span class="op">=</span> <span class="va">redcapcast_meta</span>,</span>
<span> forms <span class="op">=</span> <span class="st">"all"</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/sanitize_split.html">sanitize_split</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="../reference/redcap_wider.html">redcap_wider</a></span><span class="op">(</span><span class="op">)</span> </span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</span></span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</span></span>
<span><span class="co">#&gt; Joining with `by = join_by(record_id)`</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">ds</span><span class="op">)</span></span>
<span><span class="co">#&gt; 'data.frame': 6 obs. of 52 variables:</span></span>
<span><span class="co">#&gt; $ record_id : num 1 2 3 4 5 6</span></span>
<span><span class="co">#&gt; $ cpr : chr "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
<span><span class="co">#&gt; $ inclusion : Date, format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ inclusion_time : 'hms' num 12:38:49 10:38:57 12:01:07 20:39:19 ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></span>
<span><span class="co">#&gt; $ dob : Date, format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num 83 89.1 66.1 117.9 126.2 ...</span></span>
<span><span class="co">#&gt; $ age_integer : num 83 89 66 117 126 91</span></span>
<span><span class="co">#&gt; $ sex : chr "female" "male" "male" "female" ...</span></span>
<span><span class="co">#&gt; $ cohabitation : chr "Yes" "Yes" "No" NA ...</span></span>
<span><span class="co">#&gt; $ hypertension : chr "No" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ diabetes : chr "Yes" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ region : chr "East" "South" "North" NA ...</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete: chr "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_inclusion : chr "Yes" "Yes" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_follow1 : chr NA "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_follow2 : chr NA NA "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_date_inclusion : Date, format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_date_follow1 : Date, format: NA "2023-03-09" ...</span></span>
<span><span class="co">#&gt; $ mrs_date_follow2 : Date, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_score_inclusion : num 1 1 NA NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_score_follow1 : num NA 3 2 NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_score_follow2 : num NA NA 1 NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_complete_inclusion : chr "Incomplete" "Incomplete" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete_follow1 : chr NA "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete_follow2 : chr NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ con_mrs : logi NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; $ con_calc : logi NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; $ consensus_complete : chr NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_1_follow1 : POSIXct, format: NA "2024-01-18 12:49:42" ...</span></span>
<span><span class="co">#&gt; $ event_datetime_1_follow2 : POSIXct, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age_1_follow1 : num NA NA NA 96 127 NA</span></span>
<span><span class="co">#&gt; $ event_age_1_follow2 : num NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; $ event_type_1_follow1 : chr NA "TIA" "AIS" "TIA" ...</span></span>
<span><span class="co">#&gt; $ event_type_1_follow2 : chr NA NA "ICH" "AIS" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_1_follow1: chr NA "Incomplete" "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_1_follow2: chr NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ event_datetime_2_follow1 : POSIXct, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_2_follow2 : POSIXct, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_3_follow1 : POSIXct, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_3_follow2 : POSIXct, format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age_2_follow1 : num NA NA NA 105 127 NA</span></span>
<span><span class="co">#&gt; $ event_age_2_follow2 : num NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; $ event_age_3_follow1 : num NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; $ event_age_3_follow2 : num NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; $ event_type_2_follow1 : chr NA NA "ICH" "TIA" ...</span></span>
<span><span class="co">#&gt; $ event_type_2_follow2 : chr NA NA "TIA" "ICH" ...</span></span>
<span><span class="co">#&gt; $ event_type_3_follow1 : chr NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_type_3_follow2 : chr NA NA "AIS" "Unknown" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_2_follow1: chr NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_2_follow2: chr NA NA "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_3_follow1: chr NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_3_follow2: chr NA NA "Incomplete" "Complete" ...</span></span></code></pre></div>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">ds</span><span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/ds2dd_detailed.html">ds2dd_detailed</a></span><span class="op">(</span><span class="op">)</span><span class="op">|&gt;</span> </span>
<span> <span class="fu">purrr</span><span class="fu">::</span><span class="fu"><a href="https://purrr.tidyverse.org/reference/pluck.html" class="external-link">pluck</a></span><span class="op">(</span><span class="st">"data"</span><span class="op">)</span> <span class="op">|&gt;</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="op">)</span></span>
<span><span class="co">#&gt; tibble [6 × 52] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; $ record_id : num [1:6] 1 2 3 4 5 6</span></span>
<span><span class="co">#&gt; $ cpr : chr [1:6] "1203401OB4" "0102342303" "2301569823" "0204051342" ...</span></span>
<span><span class="co">#&gt; $ inclusion : Date[1:6], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ inclusion_time : chr [1:6] "12:38:49" "10:38:57" "12:01:07" "20:39:19" ...</span></span>
<span><span class="co">#&gt; $ dob : Date[1:6], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num [1:6] 83 89.1 66.1 117.9 126.2 ...</span></span>
<span><span class="co">#&gt; $ age_integer : num [1:6] 83 89 66 117 126 91</span></span>
<span><span class="co">#&gt; $ sex : chr [1:6] "female" "male" "male" "female" ...</span></span>
<span><span class="co">#&gt; $ cohabitation : chr [1:6] "Yes" "Yes" "No" NA ...</span></span>
<span><span class="co">#&gt; $ hypertension : chr [1:6] "No" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ diabetes : chr [1:6] "Yes" "No" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ region : chr [1:6] "East" "South" "North" NA ...</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete: chr [1:6] "Incomplete" "Incomplete" "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_inclusion : chr [1:6] "Yes" "Yes" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_follow1 : chr [1:6] NA "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed_follow2 : chr [1:6] NA NA "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_date_inclusion : Date[1:6], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_date_follow1 : Date[1:6], format: NA "2023-03-09" ...</span></span>
<span><span class="co">#&gt; $ mrs_date_follow2 : Date[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_score_inclusion : num [1:6] 1 1 NA NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_score_follow1 : num [1:6] NA 3 2 NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_score_follow2 : num [1:6] NA NA 1 NA NA NA</span></span>
<span><span class="co">#&gt; $ mrs_complete_inclusion : chr [1:6] "Incomplete" "Incomplete" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete_follow1 : chr [1:6] NA "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete_follow2 : chr [1:6] NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ con_mrs : logi [1:6] NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; $ con_calc : logi [1:6] NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; $ consensus_complete : chr [1:6] NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_1_follow1 : POSIXct[1:6], format: NA "2024-01-18 12:49:42" ...</span></span>
<span><span class="co">#&gt; $ event_datetime_1_follow2 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age_1_follow1 : num [1:6] NA NA NA 96 127 NA</span></span>
<span><span class="co">#&gt; $ event_age_1_follow2 : num [1:6] NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; $ event_type_1_follow1 : chr [1:6] NA "TIA" "AIS" "TIA" ...</span></span>
<span><span class="co">#&gt; $ event_type_1_follow2 : chr [1:6] NA NA "ICH" "AIS" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_1_follow1: chr [1:6] NA "Incomplete" "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_1_follow2: chr [1:6] NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ event_datetime_2_follow1 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_2_follow2 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_3_follow1 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime_3_follow2 : POSIXct[1:6], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age_2_follow1 : num [1:6] NA NA NA 105 127 NA</span></span>
<span><span class="co">#&gt; $ event_age_2_follow2 : num [1:6] NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; $ event_age_3_follow1 : num [1:6] NA NA NA NA NA NA</span></span>
<span><span class="co">#&gt; $ event_age_3_follow2 : num [1:6] NA NA NA 118 NA NA</span></span>
<span><span class="co">#&gt; $ event_type_2_follow1 : chr [1:6] NA NA "ICH" "TIA" ...</span></span>
<span><span class="co">#&gt; $ event_type_2_follow2 : chr [1:6] NA NA "TIA" "ICH" ...</span></span>
<span><span class="co">#&gt; $ event_type_3_follow1 : chr [1:6] NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_type_3_follow2 : chr [1:6] NA NA "AIS" "Unknown" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_2_follow1: chr [1:6] NA NA "Incomplete" "Complete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_2_follow2: chr [1:6] NA NA "Incomplete" "Incomplete" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_3_follow1: chr [1:6] NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ new_event_complete_3_follow2: chr [1:6] NA NA "Incomplete" "Complete" ...</span></span></code></pre></div>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">ds</span><span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/ds2dd_detailed.html">ds2dd_detailed</a></span><span class="op">(</span><span class="op">)</span><span class="op">|&gt;</span> </span>
<span> <span class="fu">purrr</span><span class="fu">::</span><span class="fu"><a href="https://purrr.tidyverse.org/reference/pluck.html" class="external-link">pluck</a></span><span class="op">(</span><span class="st">"meta"</span><span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># A tibble: 10 × 18</span></span></span>
<span><span class="co">#&gt; field_name form_name section_header field_type field_label </span></span>
<span><span class="co">#&gt; <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;lgl&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 1</span> record_id data <span style="color: #BB0000;">NA</span> text record_id </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 2</span> cpr data <span style="color: #BB0000;">NA</span> text cpr </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 3</span> inclusion data <span style="color: #BB0000;">NA</span> text inclusion </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 4</span> inclusion_time data <span style="color: #BB0000;">NA</span> text inclusion_time</span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 5</span> dob data <span style="color: #BB0000;">NA</span> text dob </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 6</span> age data <span style="color: #BB0000;">NA</span> text age </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 7</span> age_integer data <span style="color: #BB0000;">NA</span> text age_integer </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 8</span> sex data <span style="color: #BB0000;">NA</span> text sex </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;"> 9</span> cohabitation data <span style="color: #BB0000;">NA</span> text cohabitation </span></span>
<span><span class="co">#&gt; <span style="color: #BCBCBC;">10</span> hypertension data <span style="color: #BB0000;">NA</span> text hypertension </span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># 13 more variables: select_choices_or_calculations &lt;lgl&gt;, field_note &lt;lgl&gt;,</span></span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># text_validation_type_or_show_slider_number &lt;chr&gt;,</span></span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># text_validation_min &lt;lgl&gt;, text_validation_max &lt;lgl&gt;, identifier &lt;lgl&gt;,</span></span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># branching_logic &lt;lgl&gt;, required_field &lt;lgl&gt;, custom_alignment &lt;lgl&gt;,</span></span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># question_number &lt;lgl&gt;, matrix_group_name &lt;lgl&gt;, matrix_ranking &lt;lgl&gt;,</span></span></span>
<span><span class="co">#&gt; <span style="color: #949494;"># field_annotation &lt;lgl&gt;</span></span></span></code></pre></div>
<p>Different data formats are accepted, which all mostly implements the
<code><a href="https://readr.tidyverse.org/reference/parse_guess.html" class="external-link">readr::col_guess()</a></code> functionality to parse column
classes.</p>
<p>To ensure uniformity in data import this parsing has been implemented
on its own to use with <code><a href="../reference/ds2dd_detailed.html">ds2dd_detailed()</a></code> or any other data
set for that matter:</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">ds_parsed</span> <span class="op">&lt;-</span> <span class="va">redcapcast_data</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span><span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/across.html" class="external-link">across</a></span><span class="op">(</span><span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://tidyselect.r-lib.org/reference/everything.html" class="external-link">everything</a></span><span class="op">(</span><span class="op">)</span>,<span class="va">as.character</span><span class="op">)</span><span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/parse_data.html">parse_data</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">ds_parsed</span><span class="op">)</span></span>
<span><span class="co">#&gt; tibble [25 × 27] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; $ record_id : num [1:25] 1 2 2 2 3 3 3 3 3 3 ...</span></span>
<span><span class="co">#&gt; $ redcap_event_name : chr [1:25] "inclusion" "inclusion" "follow1" "follow1" ...</span></span>
<span><span class="co">#&gt; $ redcap_repeat_instrument : chr [1:25] NA NA NA "New Event (?)" ...</span></span>
<span><span class="co">#&gt; $ redcap_repeat_instance : num [1:25] NA NA NA 1 NA NA NA 1 2 1 ...</span></span>
<span><span class="co">#&gt; $ cpr : chr [1:25] "1203401OB4" "0102342303" NA NA ...</span></span>
<span><span class="co">#&gt; $ inclusion : Date[1:25], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ inclusion_time : 'hms' num [1:25] 12:38:49 10:38:57 NA NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></span>
<span><span class="co">#&gt; $ dob : Date[1:25], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num [1:25] 83 89.1 NA NA 66.1 ...</span></span>
<span><span class="co">#&gt; $ age_integer : num [1:25] 83 89 NA NA 66 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ sex : chr [1:25] "female" "male" NA NA ...</span></span>
<span><span class="co">#&gt; $ cohabitation : chr [1:25] "Yes" "Yes" NA NA ...</span></span>
<span><span class="co">#&gt; $ hypertension : chr [1:25] "No" "No" NA NA ...</span></span>
<span><span class="co">#&gt; $ diabetes : chr [1:25] "Yes" "No" NA NA ...</span></span>
<span><span class="co">#&gt; $ region : chr [1:25] "East" "South" NA NA ...</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete: chr [1:25] "Incomplete" "Incomplete" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed : chr [1:25] "Yes" "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_date : Date[1:25], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_score : num [1:25] 1 1 3 NA NA 2 1 NA NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete : chr [1:25] "Incomplete" "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ con_mrs : logi [1:25] NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ con_calc : logi [1:25] NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ consensus_complete : chr [1:25] NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime : POSIXct[1:25], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age : num [1:25] NA NA NA NA NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_type : chr [1:25] NA NA NA "TIA" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete : chr [1:25] NA NA NA "Incomplete" ...</span></span>
<span><span class="co">#&gt; - attr(*, "problems")=&lt;externalptr&gt;</span></span></code></pre></div>
<p>It will ignore specified columns, which is neat for numeric-looking
strings like cpr-with a leading 0:</p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">redcapcast_data</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span><span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/across.html" class="external-link">across</a></span><span class="op">(</span><span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://tidyselect.r-lib.org/reference/everything.html" class="external-link">everything</a></span><span class="op">(</span><span class="op">)</span>,<span class="va">as.character</span><span class="op">)</span><span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="../reference/parse_data.html">parse_data</a></span><span class="op">(</span>ignore.vars <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">"cpr"</span><span class="op">)</span><span class="op">)</span> <span class="op">|&gt;</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="op">)</span></span>
<span><span class="co">#&gt; tibble [25 × 27] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; $ record_id : chr [1:25] "1" "2" "2" "2" ...</span></span>
<span><span class="co">#&gt; $ redcap_event_name : chr [1:25] "inclusion" "inclusion" "follow1" "follow1" ...</span></span>
<span><span class="co">#&gt; $ redcap_repeat_instrument : chr [1:25] NA NA NA "New Event (?)" ...</span></span>
<span><span class="co">#&gt; $ redcap_repeat_instance : num [1:25] NA NA NA 1 NA NA NA 1 2 1 ...</span></span>
<span><span class="co">#&gt; $ cpr : chr [1:25] "1203401OB4" "0102342303" NA NA ...</span></span>
<span><span class="co">#&gt; $ inclusion : Date[1:25], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ inclusion_time : 'hms' num [1:25] 12:38:49 10:38:57 NA NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></span>
<span><span class="co">#&gt; $ dob : Date[1:25], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num [1:25] 83 89.1 NA NA 66.1 ...</span></span>
<span><span class="co">#&gt; $ age_integer : num [1:25] 83 89 NA NA 66 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ sex : chr [1:25] "female" "male" NA NA ...</span></span>
<span><span class="co">#&gt; $ cohabitation : chr [1:25] "Yes" "Yes" NA NA ...</span></span>
<span><span class="co">#&gt; $ hypertension : chr [1:25] "No" "No" NA NA ...</span></span>
<span><span class="co">#&gt; $ diabetes : chr [1:25] "Yes" "No" NA NA ...</span></span>
<span><span class="co">#&gt; $ region : chr [1:25] "East" "South" NA NA ...</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete: chr [1:25] "Incomplete" "Incomplete" NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed : chr [1:25] "Yes" "Yes" "Yes" NA ...</span></span>
<span><span class="co">#&gt; $ mrs_date : Date[1:25], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_score : num [1:25] 1 1 3 NA NA 2 1 NA NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete : chr [1:25] "Incomplete" "Incomplete" "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ con_mrs : logi [1:25] NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ con_calc : logi [1:25] NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ consensus_complete : chr [1:25] NA NA "Incomplete" NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime : POSIXct[1:25], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age : num [1:25] NA NA NA NA NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_type : chr [1:25] NA NA NA "TIA" ...</span></span>
<span><span class="co">#&gt; $ new_event_complete : chr [1:25] NA NA NA "Incomplete" ...</span></span>
<span><span class="co">#&gt; - attr(*, "problems")=&lt;externalptr&gt;</span></span></code></pre></div>
<p>Column classes can be passed to <code><a href="../reference/parse_data.html">parse_data()</a></code>.</p>
<p>Making a few crude assumption for factorising data,
<code><a href="../reference/numchar2fct.html">numchar2fct()</a></code> factorises numerical and character vectors
based on a set threshold for unique values:</p>
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">mtcars</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; 'data.frame': 32 obs. of 11 variables:</span></span>
<span><span class="co">#&gt; $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...</span></span>
<span><span class="co">#&gt; $ cyl : num 6 6 4 6 8 6 8 4 4 6 ...</span></span>
<span><span class="co">#&gt; $ disp: num 160 160 108 258 360 ...</span></span>
<span><span class="co">#&gt; $ hp : num 110 110 93 110 175 105 245 62 95 123 ...</span></span>
<span><span class="co">#&gt; $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...</span></span>
<span><span class="co">#&gt; $ wt : num 2.62 2.88 2.32 3.21 3.44 ...</span></span>
<span><span class="co">#&gt; $ qsec: num 16.5 17 18.6 19.4 17 ...</span></span>
<span><span class="co">#&gt; $ vs : num 0 0 1 1 0 1 0 1 1 1 ...</span></span>
<span><span class="co">#&gt; $ am : num 1 1 1 0 0 0 0 0 0 0 ...</span></span>
<span><span class="co">#&gt; $ gear: num 4 4 4 3 3 3 3 4 4 4 ...</span></span>
<span><span class="co">#&gt; $ carb: num 4 4 1 1 2 1 4 2 2 4 ...</span></span>
<span><span class="va">mtcars</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="../reference/numchar2fct.html">numchar2fct</a></span><span class="op">(</span>numeric.threshold <span class="op">=</span> <span class="fl">6</span><span class="op">)</span> <span class="op">|&gt;</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="op">)</span></span>
<span><span class="co">#&gt; 'data.frame': 32 obs. of 11 variables:</span></span>
<span><span class="co">#&gt; $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...</span></span>
<span><span class="co">#&gt; $ cyl : Factor w/ 3 levels "4","6","8": 2 2 1 2 3 2 3 1 1 2 ...</span></span>
<span><span class="co">#&gt; $ disp: num 160 160 108 258 360 ...</span></span>
<span><span class="co">#&gt; $ hp : num 110 110 93 110 175 105 245 62 95 123 ...</span></span>
<span><span class="co">#&gt; $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...</span></span>
<span><span class="co">#&gt; $ wt : num 2.62 2.88 2.32 3.21 3.44 ...</span></span>
<span><span class="co">#&gt; $ qsec: num 16.5 17 18.6 19.4 17 ...</span></span>
<span><span class="co">#&gt; $ vs : Factor w/ 2 levels "0","1": 1 1 2 2 1 2 1 2 2 2 ...</span></span>
<span><span class="co">#&gt; $ am : Factor w/ 2 levels "0","1": 2 2 2 1 1 1 1 1 1 1 ...</span></span>
<span><span class="co">#&gt; $ gear: Factor w/ 3 levels "3","4","5": 2 2 2 1 1 1 1 2 2 2 ...</span></span>
<span><span class="co">#&gt; $ carb: Factor w/ 6 levels "1","2","3","4",..: 4 4 1 1 2 1 4 2 2 4 ...</span></span></code></pre></div>
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">ds_parsed</span><span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="../reference/numchar2fct.html">numchar2fct</a></span><span class="op">(</span>numeric.threshold <span class="op">=</span> <span class="fl">2</span><span class="op">)</span> <span class="op">|&gt;</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="op">)</span></span>
<span><span class="co">#&gt; tibble [25 × 27] (S3: tbl_df/tbl/data.frame)</span></span>
<span><span class="co">#&gt; $ record_id : num [1:25] 1 2 2 2 3 3 3 3 3 3 ...</span></span>
<span><span class="co">#&gt; $ redcap_event_name : Factor w/ 3 levels "inclusion","follow1",..: 1 1 2 2 1 2 3 2 2 3 ...</span></span>
<span><span class="co">#&gt; $ redcap_repeat_instrument : Factor w/ 1 level "New Event (?)": NA NA NA 1 NA NA NA 1 1 1 ...</span></span>
<span><span class="co">#&gt; $ redcap_repeat_instance : num [1:25] NA NA NA 1 NA NA NA 1 2 1 ...</span></span>
<span><span class="co">#&gt; $ cpr : chr [1:25] "1203401OB4" "0102342303" NA NA ...</span></span>
<span><span class="co">#&gt; $ inclusion : Date[1:25], format: "2023-03-13" "2023-03-01" ...</span></span>
<span><span class="co">#&gt; $ inclusion_time : 'hms' num [1:25] 12:38:49 10:38:57 NA NA ...</span></span>
<span><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></span>
<span><span class="co">#&gt; $ dob : Date[1:25], format: "1940-03-12" "1934-02-01" ...</span></span>
<span><span class="co">#&gt; $ age : num [1:25] 83 89.1 NA NA 66.1 ...</span></span>
<span><span class="co">#&gt; $ age_integer : num [1:25] 83 89 NA NA 66 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ sex : Factor w/ 2 levels "female","male": 1 2 NA NA 2 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ cohabitation : Factor w/ 2 levels "Yes","No": 1 1 NA NA 2 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ hypertension : Factor w/ 2 levels "No","Yes": 1 1 NA NA 2 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ diabetes : Factor w/ 2 levels "Yes","No": 1 2 NA NA 1 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ region : Factor w/ 3 levels "East","South",..: 1 2 NA NA 3 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ baseline_data_start_complete: Factor w/ 2 levels "Incomplete","Complete": 1 1 NA NA 1 NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_assessed : Factor w/ 1 level "Yes": 1 1 1 NA NA 1 1 NA NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_date : Date[1:25], format: "2023-03-13" "2023-03-07" ...</span></span>
<span><span class="co">#&gt; $ mrs_score : num [1:25] 1 1 3 NA NA 2 1 NA NA NA ...</span></span>
<span><span class="co">#&gt; $ mrs_complete : Factor w/ 1 level "Incomplete": 1 1 1 NA 1 1 1 NA NA NA ...</span></span>
<span><span class="co">#&gt; $ con_mrs : logi [1:25] NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ con_calc : logi [1:25] NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ consensus_complete : Factor w/ 1 level "Incomplete": NA NA 1 NA NA 1 1 NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_datetime : POSIXct[1:25], format: NA NA ...</span></span>
<span><span class="co">#&gt; $ event_age : num [1:25] NA NA NA NA NA NA NA NA NA NA ...</span></span>
<span><span class="co">#&gt; $ event_type : Factor w/ 4 levels "TIA","AIS","ICH",..: NA NA NA 1 NA NA NA 2 3 3 ...</span></span>
<span><span class="co">#&gt; $ new_event_complete : Factor w/ 2 levels "Incomplete","Complete": NA NA NA 1 NA NA NA 1 1 1 ...</span></span>
<span><span class="co">#&gt; - attr(*, "problems")=&lt;externalptr&gt;</span></span></code></pre></div>
</main> </main>
</div> </div>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -42,7 +42,7 @@
<dl><dt><a href="Database-creation.html">Database-creation</a></dt> <dl><dt><a href="Database-creation.html">Database-creation</a></dt>
<dd> <dd>
</dd><dt><a href="Introduction.html">Introduction</a></dt> </dd><dt><a href="REDCapCAST.html">REDCapCAST</a></dt>
<dd> <dd>
</dd><dt><a href="Shiny-app.html">Shiny-app</a></dt> </dd><dt><a href="Shiny-app.html">Shiny-app</a></dt>
<dd> <dd>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>

View File

@ -38,12 +38,12 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"> <ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li> <li><a class="dropdown-item" href="articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="articles/Shiny-app.html">Shiny-app</a></li>
</ul> </ul>
</li> </li>
@ -62,33 +62,26 @@
</nav><div class="container template-home"> </nav><div class="container template-home">
<div class="row"> <div class="row">
<main id="main" class="col-md-9"> <main id="main" class="col-md-9">
<!-- badges: end -->
<div class="section level1"> <div class="section level1">
<div class="page-header"> <div class="page-header">
<img src="logo.png" class="logo" alt=""><h1 id="redcapcast-package-">REDCapCAST package <a class="anchor" aria-label="anchor" href="#redcapcast-package-"></a> <img src="logo.png" class="logo" alt=""><h1 id="redcapcast-package-">REDCapCAST package <a class="anchor" aria-label="anchor" href="#redcapcast-package-"></a>
</h1> </h1>
</div> </div>
<p>REDCap database casting and handling of castellated data when using repeated instruments and longitudinal projects.</p> <p>Casting metadata for REDCap database creation and handling of castellated data using repeated instruments and longitudinal projects in REDCap.</p>
<p>This package is a fork of <a href="https://github.com/pegeler/REDCapRITS" class="external-link">pegeler/REDCapRITS</a>. The <code>REDCapRITS</code> represents great and extensive work to handle castellated REDCap data in different programming languages. This fork is purely minded on R usage and includes a few implementations of the main <code>REDCap_split</code> function. The <code>REDCapRITS</code> as well as <code>REDCapCAST</code> would not be possible without the outstanding work in <a href="https://ouhscbbmc.github.io/REDCapR/" class="external-link"><code>REDCapR</code></a>.</p> <p>This is implemented with</p>
<div class="section level2">
<h2 id="what-problem-does-redcapcast-solve">What problem does <code>REDCapCAST</code> solve?<a class="anchor" aria-label="anchor" href="#what-problem-does-redcapcast-solve"></a>
</h2>
<p>I started working on this project as the castellated longitudinal data set was a little challenging. Later, I have come to learn of the <a href="https://github.com/vubiostat/redcapAPI" class="external-link"><code>redcapAPI</code></a> package, which would also cover this functionality. I find the <code>redcapAPI</code>package quite advanced and a little difficult to work with. This have led to the continued work on this package, as an easy-to-use approach for data migration, data base creation and data handling. This package is very much to be seen as an attempt at a R-to-REDCap-to-R foundry for handling both the transition from dataset/variable list to database and the other way, from REDCap database to a tidy dataset. The goal was also to allow for a “minimal data” approach by allowing to filter records, instruments and variables in the export to only download data needed. I think this approach is desirable for handling sensitive, clinical data. Please refer to <a href="https://redcap-tools.github.io/" class="external-link">REDCap-Tools</a> for other great tools for working with REDCap in R.</p>
<p>For any more advanced uses, consider using the <a href="https://github.com/vubiostat/redcapAPI" class="external-link"><code>redcapAPI</code></a> or <a href="https://ouhscbbmc.github.io/REDCapR/" class="external-link"><code>REDCapR</code></a> packages.</p>
<p>What is unique in this package, is the work towards making it a lot easier to move data from different sources to REDCap databases: casting REDCap metadata based on a spreadsheet. This is all wrapped in <code><a href="reference/shiny_cast.html">shiny_cast()</a></code>and <a href="https://agdamsbo.shinyapps.io/redcapcast/" class="external-link">hosted for all to use here</a>.</p>
</div>
<div class="section level2">
<h2 id="main-functionality">Main functionality<a class="anchor" aria-label="anchor" href="#main-functionality"></a>
</h2>
<p>Here is just a short description of the main functions:</p>
<ul> <ul>
<li><p><code>REDcap_split()</code>: Works largely as the original <code>REDCapRITS::REDCap_split()</code>. It takes a REDCap dataset and metadata (data dictionary) to split the data set into a list of dataframes of instruments.</p></li> <li><p>An app-interface for easy database creation <a href="https://agdamsbo.shinyapps.io/redcapcast/" class="external-link">accessible here</a> or available to run locally with <code><a href="reference/shiny_cast.html">shiny_cast()</a></code> allowing you to easily create a REDCap database based on an existing spreadsheet.</p></li>
<li><p><code><a href="reference/read_redcap_tables.html">read_redcap_tables()</a></code>: wraps the use of <a href="https://github.com/OuhscBbmc/REDCapR" class="external-link"><code>REDCapR::redcap_read()</code></a> with <code><a href="reference/REDCap_split.html">REDCap_split()</a></code> to ease the export of REDCap data. Default output is a list of data frames with one data frame for each REDCap instrument.</p></li> <li><p>Export data from REDCap in different formats handling castellated data, and on default only export requested data, this is mainly through <code><a href="reference/read_redcap_tables.html">read_redcap_tables()</a></code>.</p></li>
<li><p><code><a href="reference/redcap_wider.html">redcap_wider()</a></code>: joins and pivots a list of data frames with repeated instruments to a wide format utilizing the <a href="https://tidyr.tidyverse.org/reference/pivot_wider.html" class="external-link"><code>tidyr::pivot_wider()</code></a> from the <a href="https://www.tidyverse.org/" class="external-link">tidyverse</a>.</p></li>
<li><p><code><a href="reference/easy_redcap.html">easy_redcap()</a></code>: combines secure API key storage with the <code>keyring</code>-package, focused data retrieval and optional widening. This is the recommended approach for easy data access and analysis.</p></li>
<li><p><code><a href="reference/ds2dd_detailed.html">ds2dd_detailed()</a></code>: Converts a data set to a data dictionary for upload to a new REDCap database. Variables (fields) and instruments in a REDCap data base are defined by this data dictionary.</p></li>
<li><p><code><a href="reference/doc2dd.html">doc2dd()</a></code>: Converts a document table to data dictionary. This allows to specify instrument or whole data dictionary in text document, which for most is easier to work with and easily modifiable. Very much like a easy version of just working directly in the data dictionary file itself.</p></li>
<li><p><code><a href="reference/shiny_cast.html">shiny_cast()</a></code>: <a href="https://shiny.posit.co/" class="external-link">Shiny</a> application to ease the process of converting a spreadsheet/data set to a REDCap database. The app runs locally and data is transferred securely. You can just create and upload the data dictionary, but you can also transfer the given data in the same process. The app is <a href="https://agdamsbo.shinyapps.io/redcapcast/" class="external-link">hosted on shinyapps.io</a>.</p></li>
</ul> </ul>
<p>REDCapCAST was initially build on, and still includes code from <a href="https://github.com/pegeler/REDCapRITS" class="external-link">pegeler/REDCapRITS</a>, and relies on functions from the <a href="https://ouhscbbmc.github.io/REDCapR/" class="external-link"><code>REDCapR</code></a>-project</p>
<div class="section level2">
<h2 id="history">History<a class="anchor" aria-label="anchor" href="#history"></a>
</h2>
<p>This package was originally forked from <a href="https://github.com/pegeler/REDCapRITS" class="external-link">pegeler/REDCapRITS</a>. The <code>REDCapRITS</code> represents great and extensive work to handle castellated REDCap data in different programming languages. REDCapCAST has evolved into much more than just handling castellated data and so has been detatched from the original project while still relying on the main <code>REDCap_split</code> function. All access to the REDCap database is build on the outstanding work in <a href="#id_0"><code>REDCapR</code></a>.</p>
<p>This package really started out of frustration during my PhD in health science hearing colleagues complaining about that “castellated” data formatting of REDCap exports when doing longitudinal projects and being used to wide data. This led to some bad decisions in building databases avoiding repeated instruments. This package solves these challenges, but solutions are also implemented else where like the <a href="https://github.com/vubiostat/redcapAPI" class="external-link">redcapAPI</a> or <a href="https://github.com/CHOP-CGTInformatics/REDCapTidieR" class="external-link">REDCapTidieR</a> packages, which are bigger project.</p>
<p>To help new PhD students and other researchers, I have also worked on creating a few helper/wrapper-functions to ease data access. Documentation is on its way.</p>
<p>For any more advanced uses, consider using the <a href="https://github.com/vubiostat/redcapAPI" class="external-link"><code>redcapAPI</code></a> or <a href="https://ouhscbbmc.github.io/REDCapR/" class="external-link"><code>REDCapR</code></a> packages.</p>
</div> </div>
<div class="section level2"> <div class="section level2">
<h2 id="future">Future<a class="anchor" aria-label="anchor" href="#future"></a> <h2 id="future">Future<a class="anchor" aria-label="anchor" href="#future"></a>
@ -96,7 +89,7 @@
<p>The plan with this package is to be bundled with a Handbook on working with REDCap from R. This work is in progress but is limited by the time available. Please feel free to contact me or create and issue with ideas for future additions.</p> <p>The plan with this package is to be bundled with a Handbook on working with REDCap from R. This work is in progress but is limited by the time available. Please feel free to contact me or create and issue with ideas for future additions.</p>
</div> </div>
<div class="section level2"> <div class="section level2">
<h2 id="installation">Installation<a class="anchor" aria-label="anchor" href="#installation"></a> <h2 id="installation-and-use">Installation and use<a class="anchor" aria-label="anchor" href="#installation-and-use"></a>
</h2> </h2>
<p>The package is available on CRAN. Install the latest version:</p> <p>The package is available on CRAN. Install the latest version:</p>
<pre><code><span><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html" class="external-link">install.packages</a></span><span class="op">(</span><span class="st">"REDCapCAST"</span><span class="op">)</span></span></code></pre> <pre><code><span><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html" class="external-link">install.packages</a></span><span class="op">(</span><span class="st">"REDCapCAST"</span><span class="op">)</span></span></code></pre>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="active nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="active nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -37,6 +37,13 @@
<small>Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/NEWS.md" class="external-link"><code>NEWS.md</code></a></small> <small>Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
</div> </div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="24.11.2" id="redcapcast-24112">REDCapCAST 24.11.2<a class="anchor" aria-label="anchor" href="#redcapcast-24112"></a></h2>
<p>24.11.1 was rejected on CRAN based on wrong title capitalisation. This was an opportunity to extend the package overhaul.</p>
<p>Documentation has been updated. Data parser functions have been added (based on readr) and separated from the ds2dd_detailed().</p>
<p>Vignettes and documentation have been restructured.</p>
<p>This package has been detached from the REDCapRITS, which it was originally forked from. The data split function will be kept, while testing will be rewritten. This projects has evolved away from the original fork, so I think this detachment is fair.</p>
</div>
<div class="section level2"> <div class="section level2">
<h2 class="pkg-version" data-toc-text="24.11.1" id="redcapcast-24111">REDCapCAST 24.11.1<a class="anchor" aria-label="anchor" href="#redcapcast-24111"></a></h2> <h2 class="pkg-version" data-toc-text="24.11.1" id="redcapcast-24111">REDCapCAST 24.11.1<a class="anchor" aria-label="anchor" href="#redcapcast-24111"></a></h2>
<p>Revised tests.</p> <p>Revised tests.</p>

View File

@ -3,9 +3,9 @@ pkgdown: 2.1.1
pkgdown_sha: ~ pkgdown_sha: ~
articles: articles:
Database-creation: Database-creation.html Database-creation: Database-creation.html
Introduction: Introduction.html REDCapCAST: REDCapCAST.html
Shiny-app: Shiny-app.html Shiny-app: Shiny-app.html
last_built: 2024-11-18T07:28Z last_built: 2024-11-18T15:51Z
urls: urls:
reference: https://agdamsbo.github.io/REDCapCAST/reference reference: https://agdamsbo.github.io/REDCapCAST/reference
article: https://agdamsbo.github.io/REDCapCAST/articles article: https://agdamsbo.github.io/REDCapCAST/articles

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>REDCapCAST: REDCap Castellated Data Handling And Metadata Casting — REDCapCAST-package • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="REDCapCAST: REDCap Castellated Data Handling And Metadata Casting — REDCapCAST-package"><meta name="description" content=" <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>REDCapCAST: REDCap Castellated Data Handling and Metadata Casting — REDCapCAST-package • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="REDCapCAST: REDCap Castellated Data Handling and Metadata Casting — REDCapCAST-package"><meta name="description" content="
Originally forked from the R part of 'REDCapRITS' by Paul Egeler. See https://github.com/pegeler/REDCapRITS. 'REDCap' database casting and handling of castellated data when using repeated instruments and longitudinal projects. Keeps a focused data export approach, by allowing to only export required data from the database. Also for casting new REDCap databases based on datasets from other sources. 'REDCap' (Research Electronic Data Capture) is a secure, web-based software platform designed to support data capture for research studies, providing 1) an intuitive interface for validated data capture; 2) audit trails for tracking data manipulation and export procedures; 3) automated export procedures for seamless data downloads to common statistical packages; and 4) procedures for data integration and interoperability with external sources (Harris et al (2009) doi:10.1016/j.jbi.2008.08.010 Originally forked from the R part of 'REDCapRITS' by Paul Egeler. See https://github.com/pegeler/REDCapRITS. 'REDCap' database casting and handling of castellated data when using repeated instruments and longitudinal projects. Keeps a focused data export approach, by allowing to only export required data from the database. Also for casting new REDCap databases based on datasets from other sources. 'REDCap' (Research Electronic Data Capture) is a secure, web-based software platform designed to support data capture for research studies, providing 1) an intuitive interface for validated data capture; 2) audit trails for tracking data manipulation and export procedures; 3) automated export procedures for seamless data downloads to common statistical packages; and 4) procedures for data integration and interoperability with external sources (Harris et al (2009) doi:10.1016/j.jbi.2008.08.010
; Harris et al (2019) doi:10.1016/j.jbi.2019.103208 ; Harris et al (2019) doi:10.1016/j.jbi.2019.103208
)."><meta property="og:description" content=" )."><meta property="og:description" content="
@ -21,11 +21,11 @@ Originally forked from the R part of 'REDCapRITS' by Paul Egeler. See https://gi
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -39,7 +39,7 @@ Originally forked from the R part of 'REDCapRITS' by Paul Egeler. See https://gi
</nav><div class="container template-reference-topic"> </nav><div class="container template-reference-topic">
<div class="row"> <div class="row">
<main id="main" class="col-md-9"><div class="page-header"> <main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>REDCapCAST: REDCap Castellated Data Handling And Metadata Casting</h1> <img src="../logo.png" class="logo" alt=""><h1>REDCapCAST: REDCap Castellated Data Handling and Metadata Casting</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/REDCapCAST-package.R" class="external-link"><code>R/REDCapCAST-package.R</code></a></small> <small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/REDCapCAST-package.R" class="external-link"><code>R/REDCapCAST-package.R</code></a></small>
<div class="d-none name"><code>REDCapCAST-package.Rd</code></div> <div class="d-none name"><code>REDCapCAST-package.Rd</code></div>
</div> </div>

View File

@ -19,11 +19,11 @@ is used to determine which fields should be included in each resultant table."><
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -23,11 +23,11 @@ naming."><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAS
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -19,11 +19,11 @@ Trying to make up for different naming conventions."><meta property="og:image" c
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -21,11 +21,11 @@ production."><meta property="og:image" content="https://agdamsbo.github.io/REDCa
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -25,11 +25,11 @@ data dictionary, but gives a few options for formatting."><meta property="og:ima
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -17,11 +17,11 @@ for a more advanced function."><meta property="og:image" content="https://agdams
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -133,10 +133,13 @@ REDCapCAST::metadata_names.</p></dd>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 mrs_date basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 18 mrs_date basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 mrs_score basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 19 mrs_score basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 mrs_complete basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 20 mrs_complete basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 event_datetime basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 21 con_mrs basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 event_age basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 22 con_calc basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 23 event_type basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 23 consensus_complete basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 24 new_event_complete basis NA text</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 24 event_datetime basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 25 event_age basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 26 event_type basis NA text</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 27 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> 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> 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> 2 redcap_event_name NA NA</span>
@ -158,10 +161,13 @@ REDCapCAST::metadata_names.</p></dd>
<span class="r-out co"><span class="r-pr">#&gt;</span> 18 mrs_date NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 18 mrs_date NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 19 mrs_score NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 19 mrs_score NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 mrs_complete NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 20 mrs_complete NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 21 event_datetime NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 21 con_mrs NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 22 event_age NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 22 con_calc NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 23 event_type NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 23 consensus_complete NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 24 new_event_complete NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 24 event_datetime NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 25 event_age NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 26 event_type NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 27 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> 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> 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> 2 NA NA</span>
@ -187,6 +193,9 @@ REDCapCAST::metadata_names.</p></dd>
<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> 22 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 25 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 26 NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 27 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> 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> 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> 2 NA NA NA NA</span>
@ -212,6 +221,9 @@ REDCapCAST::metadata_names.</p></dd>
<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> 22 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA NA NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA NA NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 25 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 26 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 27 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> 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> 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> 2 NA NA NA NA</span>
@ -237,6 +249,9 @@ REDCapCAST::metadata_names.</p></dd>
<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> 22 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA NA NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA NA NA NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 25 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 26 NA NA NA NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 27 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> 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> 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> 2 NA</span>
@ -262,6 +277,9 @@ REDCapCAST::metadata_names.</p></dd>
<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> 22 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 23 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA</span> <span class="r-out co"><span class="r-pr">#&gt;</span> 24 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 25 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 26 NA</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 27 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> </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> $`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> [1] "record_id" "redcap_event_name" </span>
@ -274,8 +292,10 @@ REDCapCAST::metadata_names.</p></dd>
<span class="r-out co"><span class="r-pr">#&gt;</span> [15] "region" "baseline_data_start_complete"</span> <span class="r-out co"><span class="r-pr">#&gt;</span> [15] "region" "baseline_data_start_complete"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [17] "mrs_assessed" "mrs_date" </span> <span class="r-out co"><span class="r-pr">#&gt;</span> [17] "mrs_assessed" "mrs_date" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [19] "mrs_score" "mrs_complete" </span> <span class="r-out co"><span class="r-pr">#&gt;</span> [19] "mrs_score" "mrs_complete" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [21] "event_datetime" "event_age" </span> <span class="r-out co"><span class="r-pr">#&gt;</span> [21] "con_mrs" "con_calc" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [23] "event_type" "new_event_complete" </span> <span class="r-out co"><span class="r-pr">#&gt;</span> [23] "consensus_complete" "event_datetime" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [25] "event_age" "event_type" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [27] "new_event_complete" </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span> <span class="r-out co"><span class="r-pr">#&gt;</span> </span>
</code></pre></div> </code></pre></div>
</div> </div>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -55,10 +55,7 @@
<span> field.label <span class="op">=</span> <span class="cn">NULL</span>,</span> <span> field.label <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> field.label.attr <span class="op">=</span> <span class="st">"label"</span>,</span> <span> field.label.attr <span class="op">=</span> <span class="st">"label"</span>,</span>
<span> field.validation <span class="op">=</span> <span class="cn">NULL</span>,</span> <span> field.validation <span class="op">=</span> <span class="cn">NULL</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="fu">REDCapCAST</span><span class="fu">::</span><span class="va"><a href="redcapcast_meta.html">redcapcast_meta</a></span><span class="op">)</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="fu">REDCapCAST</span><span class="fu">::</span><span class="va"><a href="redcapcast_meta.html">redcapcast_meta</a></span><span class="op">)</span></span>
<span> validate.time <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> time.var.sel.pos <span class="op">=</span> <span class="st">"[Tt]i[d(me)]"</span>,</span>
<span> time.var.sel.neg <span class="op">=</span> <span class="st">"[Dd]at[eo]"</span></span>
<span><span class="op">)</span></span></code></pre></div> <span><span class="op">)</span></span></code></pre></div>
</div> </div>
@ -124,20 +121,6 @@ file with `haven::read_dta()`).</p></dd>
<dd><p>redcap metadata headings. Default is <dd><p>redcap metadata headings. Default is
REDCapCAST:::metadata_names.</p></dd> REDCapCAST:::metadata_names.</p></dd>
<dt id="arg-validate-time">validate.time<a class="anchor" aria-label="anchor" href="#arg-validate-time"></a></dt>
<dd><p>Flag to validate guessed time columns</p></dd>
<dt id="arg-time-var-sel-pos">time.var.sel.pos<a class="anchor" aria-label="anchor" href="#arg-time-var-sel-pos"></a></dt>
<dd><p>Positive selection regex string passed to
`gues_time_only_filter()` as sel.pos.</p></dd>
<dt id="arg-time-var-sel-neg">time.var.sel.neg<a class="anchor" aria-label="anchor" href="#arg-time-var-sel-neg"></a></dt>
<dd><p>Negative selection regex string passed to
`gues_time_only_filter()` as sel.neg.</p></dd>
</dl></div> </dl></div>
<div class="section level2"> <div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2> <h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
@ -155,82 +138,9 @@ Please, do always inspect the data dictionary before upload.</p>
<div class="section level2"> <div class="section level2">
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2> <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">data</span> <span class="op">&lt;-</span> <span class="fu">REDCapCAST</span><span class="fu">::</span><span class="va"><a href="redcapcast_data.html">redcapcast_data</a></span></span></span> <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">data</span> <span class="op">&lt;-</span> <span class="fu">REDCapCAST</span><span class="fu">::</span><span class="va"><a href="redcapcast_data.html">redcapcast_data</a></span></span></span>
<span class="r-in"><span><span class="va">data</span> <span class="op">|&gt;</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">#&gt;</span> $is.POSIX</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 19 × 2</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> inclusion_time event_datetime </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;time&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $is.datetime</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 19 × 1</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> event_datetime </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 1</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 2</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;"> 5</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;">13</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">14</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;">18</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">19</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $is.time_only</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 19 × 1</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> inclusion_time</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;time&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 4</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 8</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 9</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">10</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">11</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">12</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;">14</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">15</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">16</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">17</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</span> </span>
<span class="r-in"><span><span class="va">data</span> <span class="op">|&gt;</span> <span class="fu">ds2dd_detailed</span><span class="op">(</span><span class="op">)</span></span></span> <span class="r-in"><span><span class="va">data</span> <span class="op">|&gt;</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">#&gt;</span> $data</span> <span class="r-out co"><span class="r-pr">#&gt;</span> $data</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 19 × 24</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 25 × 27</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> record_id redcap_event_name redcap_repeat_instrument redcap_repeat_instance</span> <span class="r-out co"><span class="r-pr">#&gt;</span> record_id redcap_event_name redcap_repeat_instrument redcap_repeat_instance</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dbl&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dbl&gt;</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dbl&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dbl&gt;</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 1</span> 1 inclusion <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 1</span> 1 inclusion <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span>
@ -243,24 +153,16 @@ Please, do always inspect the data dictionary before upload.</p>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 8</span> 3 follow1 New Event (?) 1</span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 8</span> 3 follow1 New Event (?) 1</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 9</span> 3 follow1 New Event (?) 2</span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 9</span> 3 follow1 New Event (?) 2</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">10</span> 3 follow2 New Event (?) 1</span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">10</span> 3 follow2 New Event (?) 1</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">11</span> 3 follow2 New Event (?) 2</span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># 15 more rows</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">12</span> 3 follow2 New Event (?) 3</span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># 23 more variables: cpr &lt;chr&gt;, inclusion &lt;date&gt;, inclusion_time &lt;chr&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">13</span> 4 inclusion <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">14</span> 4 follow2 <span style="color: #BB0000;">NA</span> <span style="color: #BB0000;">NA</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">15</span> 4 follow2 New Event (?) 1</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">16</span> 4 follow2 New Event (?) 2</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">17</span> 4 follow2 New Event (?) 3</span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #949494;"># 20 more variables: cpr &lt;chr&gt;, inclusion &lt;date&gt;, inclusion_time &lt;chr&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># dob &lt;date&gt;, age &lt;dbl&gt;, age_integer &lt;dbl&gt;, sex &lt;chr&gt;, cohabitation &lt;chr&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># dob &lt;date&gt;, age &lt;dbl&gt;, age_integer &lt;dbl&gt;, sex &lt;chr&gt;, cohabitation &lt;chr&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># hypertension &lt;chr&gt;, diabetes &lt;chr&gt;, region &lt;chr&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># hypertension &lt;chr&gt;, diabetes &lt;chr&gt;, region &lt;chr&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># baseline_data_start_complete &lt;chr&gt;, mrs_assessed &lt;chr&gt;, mrs_date &lt;date&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># baseline_data_start_complete &lt;chr&gt;, mrs_assessed &lt;chr&gt;, mrs_date &lt;date&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># mrs_score &lt;dbl&gt;, mrs_complete &lt;chr&gt;, event_datetime &lt;dttm&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># mrs_score &lt;dbl&gt;, mrs_complete &lt;chr&gt;, con_mrs &lt;lgl&gt;, con_calc &lt;lgl&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># event_age &lt;lgl&gt;, event_type &lt;chr&gt;, new_event_complete &lt;chr&gt;</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># consensus_complete &lt;chr&gt;, event_datetime &lt;dttm&gt;, event_age &lt;dbl&gt;, …</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span> <span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $meta</span> <span class="r-out co"><span class="r-pr">#&gt;</span> $meta</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 24 × 18</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 27 × 18</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> field_name form_name section_header field_type field_label </span> <span class="r-out co"><span class="r-pr">#&gt;</span> field_name form_name section_header field_type field_label </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;lgl&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> </span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;lgl&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> <span style="color: #949494; font-style: italic;">&lt;chr&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 1</span> record_id data <span style="color: #BB0000;">NA</span> text record_id </span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 1</span> record_id data <span style="color: #BB0000;">NA</span> text record_id </span>
@ -273,7 +175,7 @@ Please, do always inspect the data dictionary before upload.</p>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #949494;"># 14 more rows</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># 17 more rows</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># 13 more variables: select_choices_or_calculations &lt;lgl&gt;, field_note &lt;lgl&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># 13 more variables: select_choices_or_calculations &lt;lgl&gt;, field_note &lt;lgl&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># text_validation_type_or_show_slider_number &lt;chr&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># text_validation_type_or_show_slider_number &lt;chr&gt;,</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># text_validation_min &lt;lgl&gt;, text_validation_max &lt;lgl&gt;, identifier &lt;lgl&gt;,</span></span> <span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># text_validation_min &lt;lgl&gt;, text_validation_max &lt;lgl&gt;, identifier &lt;lgl&gt;,</span></span>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -21,11 +21,11 @@ production."><meta property="og:image" content="https://agdamsbo.github.io/REDCa
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Helper to import files correctly — file_extension • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Helper to import files correctly — file_extension"><meta name="description" content="Helper to import files correctly"><meta property="og:description" content="Helper to import files correctly"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>DEPRECATED Helper to import files correctly — file_extension • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="DEPRECATED Helper to import files correctly — file_extension"><meta name="description" content="DEPRECATED Helper to import files correctly"><meta property="og:description" content="DEPRECATED Helper to import files correctly"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a> <a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -33,13 +33,13 @@
</nav><div class="container template-reference-topic"> </nav><div class="container template-reference-topic">
<div class="row"> <div class="row">
<main id="main" class="col-md-9"><div class="page-header"> <main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Helper to import files correctly</h1> <img src="../logo.png" class="logo" alt=""><h1>DEPRECATED Helper to import files correctly</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/shiny_cast.R" class="external-link"><code>R/shiny_cast.R</code></a></small> <small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/shiny_cast.R" class="external-link"><code>R/shiny_cast.R</code></a></small>
<div class="d-none name"><code>file_extension.Rd</code></div> <div class="d-none name"><code>file_extension.Rd</code></div>
</div> </div>
<div class="ref-description section level2"> <div class="ref-description section level2">
<p>Helper to import files correctly</p> <p>DEPRECATED Helper to import files correctly</p>
</div> </div>
<div class="section level2"> <div class="section level2">

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -0,0 +1,154 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Guess time variables based on naming pattern — guess_time_only • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Guess time variables based on naming pattern — guess_time_only"><meta name="description" content='This is for repairing data with time variables with appended "1970-01-01"'><meta property="og:description" content='This is for repairing data with time variables with appended "1970-01-01"'><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.11.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="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Guess time variables based on naming pattern</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/ds2dd_detailed.R" class="external-link"><code>R/ds2dd_detailed.R</code></a></small>
<div class="d-none name"><code>guess_time_only.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>This is for repairing data with time variables with appended "1970-01-01"</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">guess_time_only</span><span class="op">(</span></span>
<span> <span class="va">data</span>,</span>
<span> validate.time <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> time.var.sel.pos <span class="op">=</span> <span class="st">"[Tt]i[d(me)]"</span>,</span>
<span> time.var.sel.neg <span class="op">=</span> <span class="st">"[Dd]at[eo]"</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 id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
<dd><p>data.frame or tibble</p></dd>
<dt id="arg-validate-time">validate.time<a class="anchor" aria-label="anchor" href="#arg-validate-time"></a></dt>
<dd><p>Flag to validate guessed time columns</p></dd>
<dt id="arg-time-var-sel-pos">time.var.sel.pos<a class="anchor" aria-label="anchor" href="#arg-time-var-sel-pos"></a></dt>
<dd><p>Positive selection regex string passed to
`gues_time_only_filter()` as sel.pos.</p></dd>
<dt id="arg-time-var-sel-neg">time.var.sel.neg<a class="anchor" aria-label="anchor" href="#arg-time-var-sel-neg"></a></dt>
<dd><p>Negative selection regex string passed to
`gues_time_only_filter()` as sel.neg.</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 tibble</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">|&gt;</span> <span class="fu">guess_time_only</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">#&gt;</span> $is.POSIX</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 25 × 2</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> inclusion_time event_datetime </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;time&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #949494;"># 15 more rows</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $is.datetime</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 25 × 1</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> event_datetime </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;dttm&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 1</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 2</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;"> 5</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #949494;"># 15 more rows</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $is.time_only</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># A tibble: 25 × 1</span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> inclusion_time</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494; font-style: italic;">&lt;time&gt;</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;"> 3</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 4</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</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">#&gt;</span> <span style="color: #BCBCBC;"> 6</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 7</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 8</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;"> 9</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #BCBCBC;">10</span> <span style="color: #BB0000;">NA</span> </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> <span style="color: #949494;"># 15 more rows</span></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" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer></div>
</body></html>

View File

@ -21,11 +21,11 @@ has to be converted to character class before REDCap upload.'><meta property="og
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -0,0 +1,93 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Finish incomplete haven attributes substituting missings with values — haven_all_levels • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Finish incomplete haven attributes substituting missings with values — haven_all_levels"><meta name="description" content="Finish incomplete haven attributes substituting missings with values"><meta property="og:description" content="Finish incomplete haven attributes substituting missings with values"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.11.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="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Finish incomplete haven attributes substituting missings with values</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/ds2dd_detailed.R" class="external-link"><code>R/ds2dd_detailed.R</code></a></small>
<div class="d-none name"><code>haven_all_levels.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Finish incomplete haven attributes substituting missings with values</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">haven_all_levels</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 id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
<dd><p>haven labelled variable</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>named 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">ds</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/structure.html" class="external-link">structure</a></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">1</span>, <span class="fl">2</span>, <span class="fl">3</span>, <span class="fl">2</span>, <span class="fl">10</span>, <span class="fl">9</span><span class="op">)</span>,</span></span>
<span class="r-in"><span> labels <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>Unknown <span class="op">=</span> <span class="fl">9</span>, Refused <span class="op">=</span> <span class="fl">10</span><span class="op">)</span>,</span></span>
<span class="r-in"><span> class <span class="op">=</span> <span class="st">"haven_labelled"</span></span></span>
<span class="r-in"><span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">ds</span> <span class="op">|&gt;</span> <span class="fu">haven_all_levels</span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 2 3 Unknown Refused </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 2 3 9 10 </span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer></div>
</body></html>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -130,7 +130,7 @@
<code><a href="file_extension.html">file_extension()</a></code> <code><a href="file_extension.html">file_extension()</a></code>
</dt> </dt>
<dd>Helper to import files correctly</dd> <dd>DEPRECATED Helper to import files correctly</dd>
</dl><dl><dt> </dl><dl><dt>
<code><a href="focused_metadata.html">focused_metadata()</a></code> <code><a href="focused_metadata.html">focused_metadata()</a></code>
@ -157,12 +157,24 @@
<dd>Get the id name</dd> <dd>Get the id name</dd>
</dl><dl><dt> </dl><dl><dt>
<code><a href="guess_time_only.html">guess_time_only()</a></code>
</dt>
<dd>Guess time variables based on naming pattern</dd>
</dl><dl><dt>
<code><a href="guess_time_only_filter.html">guess_time_only_filter()</a></code> <code><a href="guess_time_only_filter.html">guess_time_only_filter()</a></code>
</dt> </dt>
<dd>Try at determining which are true time only variables</dd> <dd>Try at determining which are true time only variables</dd>
</dl><dl><dt> </dl><dl><dt>
<code><a href="haven_all_levels.html">haven_all_levels()</a></code>
</dt>
<dd>Finish incomplete haven attributes substituting missings with values</dd>
</dl><dl><dt>
<code><a href="hms2character.html">hms2character()</a></code> <code><a href="hms2character.html">hms2character()</a></code>
</dt> </dt>
@ -205,6 +217,18 @@
<dd>mtcars dataset slightly modified to use for Shiny app upload demonstration</dd> <dd>mtcars dataset slightly modified to use for Shiny app upload demonstration</dd>
</dl><dl><dt> </dl><dl><dt>
<code><a href="numchar2fct.html">numchar2fct()</a></code>
</dt>
<dd>Applying var2fct across data set</dd>
</dl><dl><dt>
<code><a href="parse_data.html">parse_data()</a></code>
</dt>
<dd>Helper to auto-parse un-formatted data with haven and readr</dd>
</dl><dl><dt>
<code><a href="process_user_input.html">process_user_input()</a></code> <code><a href="process_user_input.html">process_user_input()</a></code>
</dt> </dt>
@ -305,6 +329,12 @@
</dt> </dt>
<dd>Correction based on time_only_filter function</dd> <dd>Correction based on time_only_filter function</dd>
</dl><dl><dt>
<code><a href="var2fct.html">var2fct()</a></code>
</dt>
<dd>Convert vector to factor based on threshold of number of unique levels</dd>
</dl></div> </dl></div>
</main></div> </main></div>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

124
reference/numchar2fct.html Normal file
View File

@ -0,0 +1,124 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Applying var2fct across data set — numchar2fct • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Applying var2fct across data set — numchar2fct"><meta name="description" content="Individual thresholds for character and numeric columns"><meta property="og:description" content="Individual thresholds for character and numeric columns"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.11.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="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Applying var2fct across data set</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/ds2dd_detailed.R" class="external-link"><code>R/ds2dd_detailed.R</code></a></small>
<div class="d-none name"><code>numchar2fct.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Individual thresholds for character and numeric columns</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">numchar2fct</span><span class="op">(</span><span class="va">data</span>, numeric.threshold <span class="op">=</span> <span class="fl">6</span>, character.throshold <span class="op">=</span> <span class="fl">6</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 id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
<dd><p>dataset. data.frame or tibble</p></dd>
<dt id="arg-numeric-threshold">numeric.threshold<a class="anchor" aria-label="anchor" href="#arg-numeric-threshold"></a></dt>
<dd><p>threshold for var2fct for numeric columns. Default
is 6.</p></dd>
<dt id="arg-character-throshold">character.throshold<a class="anchor" aria-label="anchor" href="#arg-character-throshold"></a></dt>
<dd><p>threshold for var2fct for character columns.
Default is 6.</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 tibble</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">mtcars</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 'data.frame': 32 obs. of 11 variables:</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ cyl : num 6 6 4 6 8 6 8 4 4 6 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ disp: num 160 160 108 258 360 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ hp : num 110 110 93 110 175 105 245 62 95 123 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ wt : num 2.62 2.88 2.32 3.21 3.44 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ qsec: num 16.5 17 18.6 19.4 17 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ vs : num 0 0 1 1 0 1 0 1 1 1 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ am : num 1 1 1 0 0 0 0 0 0 0 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ gear: num 4 4 4 3 3 3 3 4 4 4 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ carb: num 4 4 1 1 2 1 4 2 2 4 ...</span>
<span class="r-in"><span><span class="va">mtcars</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span> <span class="fu">numchar2fct</span><span class="op">(</span>numeric.threshold <span class="op">=</span> <span class="fl">6</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><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="r-out co"><span class="r-pr">#&gt;</span> 'data.frame': 32 obs. of 11 variables:</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ cyl : Factor w/ 3 levels "4","6","8": 2 2 1 2 3 2 3 1 1 2 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ disp: num 160 160 108 258 360 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ hp : num 110 110 93 110 175 105 245 62 95 123 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ wt : num 2.62 2.88 2.32 3.21 3.44 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ qsec: num 16.5 17 18.6 19.4 17 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ vs : Factor w/ 2 levels "0","1": 1 1 2 2 1 2 1 2 2 2 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ am : Factor w/ 2 levels "0","1": 2 2 2 1 1 1 1 1 1 1 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ gear: Factor w/ 3 levels "3","4","5": 2 2 2 1 1 1 1 2 2 2 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ carb: Factor w/ 6 levels "1","2","3","4",..: 4 4 1 1 2 1 4 2 2 4 ...</span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer></div>
</body></html>

128
reference/parse_data.html Normal file
View File

@ -0,0 +1,128 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Helper to auto-parse un-formatted data with haven and readr — parse_data • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Helper to auto-parse un-formatted data with haven and readr — parse_data"><meta name="description" content="Helper to auto-parse un-formatted data with haven and readr"><meta property="og:description" content="Helper to auto-parse un-formatted data with haven and readr"><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.11.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="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Helper to auto-parse un-formatted data with haven and readr</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/ds2dd_detailed.R" class="external-link"><code>R/ds2dd_detailed.R</code></a></small>
<div class="d-none name"><code>parse_data.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Helper to auto-parse un-formatted data with haven and readr</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">parse_data</span><span class="op">(</span></span>
<span> <span class="va">data</span>,</span>
<span> guess_type <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> col_types <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> locale <span class="op">=</span> <span class="fu">readr</span><span class="fu">::</span><span class="fu"><a href="https://readr.tidyverse.org/reference/locale.html" class="external-link">default_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
<span> ignore.vars <span class="op">=</span> <span class="st">"cpr"</span>,</span>
<span> <span class="va">...</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 id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
<dd><p>data.frame or tibble</p></dd>
<dt id="arg-guess-type">guess_type<a class="anchor" aria-label="anchor" href="#arg-guess-type"></a></dt>
<dd><p>logical to guess type with readr</p></dd>
<dt id="arg-col-types">col_types<a class="anchor" aria-label="anchor" href="#arg-col-types"></a></dt>
<dd><p>specify col_types using readr semantics. Ignored if guess_type is TRUE</p></dd>
<dt id="arg-locale">locale<a class="anchor" aria-label="anchor" href="#arg-locale"></a></dt>
<dd><p>option to specify locale. Defaults to readr::default_locale().</p></dd>
<dt id="arg-ignore-vars">ignore.vars<a class="anchor" aria-label="anchor" href="#arg-ignore-vars"></a></dt>
<dd><p>specify column names of columns to ignore when parsing</p></dd>
<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>ignored</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 tibble</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">mtcars</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span> <span class="fu">parse_data</span><span class="op">(</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><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="r-out co"><span class="r-pr">#&gt;</span> 'data.frame': 32 obs. of 11 variables:</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ cyl : num 6 6 4 6 8 6 8 4 4 6 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ disp: num 160 160 108 258 360 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ hp : num 110 110 93 110 175 105 245 62 95 123 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ wt : num 2.62 2.88 2.32 3.21 3.44 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ qsec: num 16.5 17 18.6 19.4 17 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ vs : num 0 0 1 1 0 1 0 1 1 1 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ am : num 1 1 1 0 0 0 0 0 0 0 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ gear: num 4 4 4 3 3 3 3 4 4 4 ...</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> $ carb: num 4 4 1 1 2 1 4 2 2 4 ...</span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer></div>
</body></html>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -17,11 +17,11 @@ in keyring."><meta property="og:image" content="https://agdamsbo.github.io/REDCa
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -23,11 +23,11 @@ instruments."><meta property="og:image" content="https://agdamsbo.github.io/REDC
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -17,11 +17,11 @@ Handles longitudinal projects, but not yet repeated instruments."><meta property
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -17,11 +17,11 @@ Contains only synthetic data."><meta property="og:image" content="https://agdams
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
@ -88,6 +88,15 @@ Contains only synthetic data.</p>
<dt>cohabitation</dt> <dt>cohabitation</dt>
<dd><p>Cohabitation status, character</p></dd> <dd><p>Cohabitation status, character</p></dd>
<dt>con_calc</dt>
<dd><p>con_calc</p></dd>
<dt>con_mrs</dt>
<dd><p>con_mrs</p></dd>
<dt>consensus_complete</dt>
<dd><p>consensus_complete</p></dd>
<dt>hypertension</dt> <dt>hypertension</dt>
<dd><p>Hypertension, character</p></dd> <dd><p>Hypertension, character</p></dd>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -17,11 +17,11 @@ on CRAN. Github:https://github.com/trinker/textclean"><meta property="og:image"
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -17,11 +17,11 @@ easing the split around the defined delimiter, see example."><meta property="og:
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

View File

@ -15,11 +15,11 @@
</button> </button>
<div id="navbar" class="collapse navbar-collapse ms-3"> <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> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button> <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li> <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Introduction.html">Introduction</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li> <li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li> </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>

106
reference/var2fct.html Normal file
View File

@ -0,0 +1,106 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Convert vector to factor based on threshold of number of unique levels — var2fct • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Convert vector to factor based on threshold of number of unique levels — var2fct"><meta name="description" content="This is a wrapper of forcats::as_factor, which sorts numeric vectors before
factoring, but levels character vectors in order of appearance."><meta property="og:description" content="This is a wrapper of forcats::as_factor, which sorts numeric vectors before
factoring, but levels character vectors in order of appearance."><meta property="og:image" content="https://agdamsbo.github.io/REDCapCAST/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">24.11.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="nav-item"><a class="nav-link" href="../articles/REDCapCAST.html">Get started</a></li>
<li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/Database-creation.html">Database-creation</a></li>
<li><a class="dropdown-item" href="../articles/Shiny-app.html">Shiny-app</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-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 vector to factor based on threshold of number of unique levels</h1>
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/ds2dd_detailed.R" class="external-link"><code>R/ds2dd_detailed.R</code></a></small>
<div class="d-none name"><code>var2fct.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>This is a wrapper of forcats::as_factor, which sorts numeric vectors before
factoring, but levels character vectors in order of appearance.</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">var2fct</span><span class="op">(</span><span class="va">data</span>, <span class="va">unique.n</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 id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
<dd><p>vector or data.frame column</p></dd>
<dt id="arg-unique-n">unique.n<a class="anchor" aria-label="anchor" href="#arg-unique-n"></a></dt>
<dd><p>threshold to convert class to factor</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>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="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</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="fl">4</span><span class="op">)</span>, <span class="fl">20</span>, <span class="cn">TRUE</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span> <span class="fu">var2fct</span><span class="op">(</span><span class="fl">6</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/summary.html" class="external-link">summary</a></span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 2 3 4 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 4 6 7 3 </span>
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="va">letters</span>, <span class="fl">20</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span> <span class="fu">var2fct</span><span class="op">(</span><span class="fl">6</span><span class="op">)</span> <span class="op">|&gt;</span></span></span>
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/summary.html" class="external-link">summary</a></span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> Length Class Mode </span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 20 character character </span>
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="va">letters</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">4</span><span class="op">]</span>, <span class="fl">20</span>, <span class="cn">TRUE</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu">var2fct</span><span class="op">(</span><span class="fl">6</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] c d d d c b c b c b c b d b a c b b c a</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> Levels: c d b a</span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
</div>
</footer></div>
</body></html>

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
<url><loc>https://agdamsbo.github.io/REDCapCAST/CODE_OF_CONDUCT.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/CODE_OF_CONDUCT.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/LICENSE.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/LICENSE.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/articles/Database-creation.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/articles/Database-creation.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/articles/Introduction.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/articles/REDCapCAST.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/articles/Shiny-app.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/articles/Shiny-app.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/articles/index.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/articles/index.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/authors.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/authors.html</loc></url>
@ -28,7 +28,9 @@
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/format_subheader.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/format_subheader.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/get_api_key.html</loc></url> <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/get_id_name.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/guess_time_only.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/guess_time_only_filter.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/guess_time_only_filter.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/haven_all_levels.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/hms2character.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/hms2character.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/html_tag_wrap.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/html_tag_wrap.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/index.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/index.html</loc></url>
@ -37,6 +39,8 @@
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/mark_complete.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/mark_complete.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/match_fields_to_form.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/match_fields_to_form.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/mtcars_redcap.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/mtcars_redcap.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/numchar2fct.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/parse_data.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/process_user_input.character.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/process_user_input.character.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/process_user_input.data.frame.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/process_user_input.data.frame.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/process_user_input.default.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/process_user_input.default.html</loc></url>
@ -54,5 +58,6 @@
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/split_non_repeating_forms.html</loc></url> <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> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/strsplitx.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/time_only_correction.html</loc></url> <url><loc>https://agdamsbo.github.io/REDCapCAST/reference/time_only_correction.html</loc></url>
<url><loc>https://agdamsbo.github.io/REDCapCAST/reference/var2fct.html</loc></url>
</urlset> </urlset>