mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-10-29 19:01:53 +01:00
Compare commits
3 Commits
686c241413
...
278cd336aa
Author | SHA1 | Date | |
---|---|---|---|
|
278cd336aa | ||
|
358b767a35 | ||
|
91405307a0 |
|
@ -223,23 +223,23 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span> variables <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">"hypertension"</span>, <span class="st">"diabetes"</span>, <span class="st">"civil"</span><span class="op">)</span><span class="op">)</span></span>
|
||||
<span><span class="co">#> Waiting for profiling to be done...</span></span>
|
||||
<span><span class="co">#> $`Table 1`</span></span>
|
||||
<span><span class="co">#> <div id="bdpixpkpcq" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span></span>
|
||||
<span><span class="co">#> <style>#bdpixpkpcq table {</span></span>
|
||||
<span><span class="co">#> <div id="adfagzzljs" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span></span>
|
||||
<span><span class="co">#> <style>#adfagzzljs table {</span></span>
|
||||
<span><span class="co">#> font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';</span></span>
|
||||
<span><span class="co">#> -webkit-font-smoothing: antialiased;</span></span>
|
||||
<span><span class="co">#> -moz-osx-font-smoothing: grayscale;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq thead, #bdpixpkpcq tbody, #bdpixpkpcq tfoot, #bdpixpkpcq tr, #bdpixpkpcq td, #bdpixpkpcq th {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs thead, #adfagzzljs tbody, #adfagzzljs tfoot, #adfagzzljs tr, #adfagzzljs td, #adfagzzljs th {</span></span>
|
||||
<span><span class="co">#> border-style: none;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq p {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs p {</span></span>
|
||||
<span><span class="co">#> margin: 0;</span></span>
|
||||
<span><span class="co">#> padding: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_table {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_table {</span></span>
|
||||
<span><span class="co">#> display: table;</span></span>
|
||||
<span><span class="co">#> border-collapse: collapse;</span></span>
|
||||
<span><span class="co">#> line-height: normal;</span></span>
|
||||
|
@ -265,12 +265,12 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-left-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_caption {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_caption {</span></span>
|
||||
<span><span class="co">#> padding-top: 4px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 4px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_title {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_title {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> font-size: 125%;</span></span>
|
||||
<span><span class="co">#> font-weight: initial;</span></span>
|
||||
|
@ -282,7 +282,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-bottom-width: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_subtitle {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_subtitle {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> font-size: 85%;</span></span>
|
||||
<span><span class="co">#> font-weight: initial;</span></span>
|
||||
|
@ -294,7 +294,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-top-width: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_heading {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_heading {</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> text-align: center;</span></span>
|
||||
<span><span class="co">#> border-bottom-color: #FFFFFF;</span></span>
|
||||
|
@ -306,13 +306,13 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_bottom_border {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_bottom_border {</span></span>
|
||||
<span><span class="co">#> border-bottom-style: solid;</span></span>
|
||||
<span><span class="co">#> border-bottom-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_col_headings {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_col_headings {</span></span>
|
||||
<span><span class="co">#> border-top-style: solid;</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
|
@ -327,7 +327,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_col_heading {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_col_heading {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
|
@ -347,7 +347,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> overflow-x: hidden;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_column_spanner_outer {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_column_spanner_outer {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
|
@ -359,15 +359,15 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> padding-right: 4px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_column_spanner_outer:first-child {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_column_spanner_outer:first-child {</span></span>
|
||||
<span><span class="co">#> padding-left: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_column_spanner_outer:last-child {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_column_spanner_outer:last-child {</span></span>
|
||||
<span><span class="co">#> padding-right: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_column_spanner {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_column_spanner {</span></span>
|
||||
<span><span class="co">#> border-bottom-style: solid;</span></span>
|
||||
<span><span class="co">#> border-bottom-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
|
@ -379,11 +379,11 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> width: 100%;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_spanner_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_spanner_row {</span></span>
|
||||
<span><span class="co">#> border-bottom-style: hidden;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_group_heading {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_group_heading {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
|
@ -409,7 +409,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> text-align: left;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_empty_group_heading {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_empty_group_heading {</span></span>
|
||||
<span><span class="co">#> padding: 0.5px;</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
|
@ -424,15 +424,15 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> vertical-align: middle;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_from_md > :first-child {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_from_md > :first-child {</span></span>
|
||||
<span><span class="co">#> margin-top: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_from_md > :last-child {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_from_md > :last-child {</span></span>
|
||||
<span><span class="co">#> margin-bottom: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_row {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
|
@ -451,7 +451,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> overflow-x: hidden;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_stub {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_stub {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
|
@ -464,7 +464,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_stub_row_group {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_stub_row_group {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
|
@ -478,15 +478,15 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> vertical-align: top;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_row_group_first td {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_row_group_first td {</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_row_group_first th {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_row_group_first th {</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_summary_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_summary_row {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> text-transform: inherit;</span></span>
|
||||
|
@ -496,16 +496,16 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_first_summary_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_first_summary_row {</span></span>
|
||||
<span><span class="co">#> border-top-style: solid;</span></span>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_first_summary_row.thick {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_first_summary_row.thick {</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_last_summary_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_last_summary_row {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
|
@ -515,7 +515,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> text-transform: inherit;</span></span>
|
||||
|
@ -525,7 +525,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_first_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_first_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
|
@ -535,7 +535,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_last_grand_summary_row_top {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_last_grand_summary_row_top {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
|
@ -545,11 +545,11 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_striped {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_striped {</span></span>
|
||||
<span><span class="co">#> background-color: rgba(128, 128, 128, 0.05);</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_table_body {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_table_body {</span></span>
|
||||
<span><span class="co">#> border-top-style: solid;</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
|
@ -558,7 +558,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_footnotes {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_footnotes {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> border-bottom-style: none;</span></span>
|
||||
|
@ -572,7 +572,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_footnote {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_footnote {</span></span>
|
||||
<span><span class="co">#> margin: 0px;</span></span>
|
||||
<span><span class="co">#> font-size: 90%;</span></span>
|
||||
<span><span class="co">#> padding-top: 4px;</span></span>
|
||||
|
@ -581,7 +581,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_sourcenotes {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_sourcenotes {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> border-bottom-style: none;</span></span>
|
||||
|
@ -595,7 +595,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_sourcenote {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_sourcenote {</span></span>
|
||||
<span><span class="co">#> font-size: 90%;</span></span>
|
||||
<span><span class="co">#> padding-top: 4px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 4px;</span></span>
|
||||
|
@ -603,63 +603,63 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
|||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_left {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_left {</span></span>
|
||||
<span><span class="co">#> text-align: left;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_center {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_center {</span></span>
|
||||
<span><span class="co">#> text-align: center;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_right {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_right {</span></span>
|
||||
<span><span class="co">#> text-align: right;</span></span>
|
||||
<span><span class="co">#> font-variant-numeric: tabular-nums;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_font_normal {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_font_normal {</span></span>
|
||||
<span><span class="co">#> font-weight: normal;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_font_bold {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_font_bold {</span></span>
|
||||
<span><span class="co">#> font-weight: bold;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_font_italic {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_font_italic {</span></span>
|
||||
<span><span class="co">#> font-style: italic;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_super {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_super {</span></span>
|
||||
<span><span class="co">#> font-size: 65%;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_footnote_marks {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_footnote_marks {</span></span>
|
||||
<span><span class="co">#> font-size: 75%;</span></span>
|
||||
<span><span class="co">#> vertical-align: 0.4em;</span></span>
|
||||
<span><span class="co">#> position: initial;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_asterisk {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_asterisk {</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
<span><span class="co">#> vertical-align: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_indent_1 {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_indent_1 {</span></span>
|
||||
<span><span class="co">#> text-indent: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_indent_2 {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_indent_2 {</span></span>
|
||||
<span><span class="co">#> text-indent: 10px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_indent_3 {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_indent_3 {</span></span>
|
||||
<span><span class="co">#> text-indent: 15px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_indent_4 {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_indent_4 {</span></span>
|
||||
<span><span class="co">#> text-indent: 20px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #bdpixpkpcq .gt_indent_5 {</span></span>
|
||||
<span><span class="co">#> #adfagzzljs .gt_indent_5 {</span></span>
|
||||
<span><span class="co">#> text-indent: 25px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </style></span></span>
|
||||
|
|
|
@ -151,7 +151,6 @@
|
|||
<li><a href="https://github.com/agdamsbo/stRoke/actions/workflows/pages/pages-build-deployment" class="external-link"><img src="https://github.com/agdamsbo/stRoke/actions/workflows/pages/pages-build-deployment/badge.svg" alt="Page deployed"></a></li>
|
||||
<li><a href="https://app.codecov.io/gh/agdamsbo/stRoke?branch=main" class="external-link"><img src="https://codecov.io/gh/agdamsbo/stRoke/branch/main/graph/badge.svg" alt="Codecov test coverage"></a></li>
|
||||
<li><a href="https://cran.r-project.org/package=stRoke" class="external-link"><img src="https://cranlogs.r-pkg.org/badges/grand-total/stRoke" alt="CRAN downloads"></a></li>
|
||||
<li><a href="https://github.com/agdamsbo/stRoke/actions/workflows/R-CMD-check.yaml" class="external-link"><img src="https://github.com/agdamsbo/stRoke/actions/workflows/R-CMD-check.yaml/badge.svg" alt="R-CMD-check"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
<ul><li><p>NEW: <code><a href="../reference/chunks_of_n.html">chunks_of_n()</a></code> uses <code><a href="https://rdrr.io/r/base/split.html" class="external-link">split()</a></code> to separate supplied vector or data frame into chunks of n. Flags to set if all but the last chunks should be exactly size n, or if they should be evenly sized of max n. Labels can be provided including regex pattern for subject naming to include in chunk names.</p></li>
|
||||
<li><p>NEW: <code><a href="../reference/n_chunks.html">n_chunks()</a></code> is the opposite of <code><a href="../reference/chunks_of_n.html">chunks_of_n()</a></code> and is simply a wrapper for this function to create list of n chunks based of provided vector or data frame.</p></li>
|
||||
<li><p>NEW: <code><a href="../reference/str_extract.html">str_extract()</a></code> will extract the substring of a character string given by a regex pattern. Came to be as a helper function for labelling chunks in <code><a href="../reference/chunks_of_n.html">chunks_of_n()</a></code>, but will be useful on its own. Other functions doing the same exists, but this is my take only using base <em>R</em>. Draws on <code>REDCapCAST::strsplitx()</code>, where splits can be performed around a pattern.</p></li>
|
||||
<li><p>NEW: <code><a href="../reference/add_padding.html">add_padding()</a></code> was created out of frustration. I wanted to add padding using <code>sprintf("%0s",string)</code>, in examples for the above, but it would fail when rendering on Windows. Say hello to another function. Just very small. Defaults to adding leading zeros, to get all string to equal length with the longer string supplied.</p></li>
|
||||
<li><p>Deprecation: <code><a href="../reference/ds2dd.html">ds2dd()</a></code> moved to <code>REDCapCAST::ds2dd()</code> as this is where it belongs.</p></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@ pkgdown_sha: ~
|
|||
articles:
|
||||
ds2dd: ds2dd.html
|
||||
toolbox: toolbox.html
|
||||
last_built: 2023-09-05T17:59Z
|
||||
last_built: 2023-09-05T21:17Z
|
||||
urls:
|
||||
reference: https://agdamsbo.github.io/stRoke/reference
|
||||
article: https://agdamsbo.github.io/stRoke/articles
|
||||
|
|
114
reference/add_padding.html
Normal file
114
reference/add_padding.html
Normal file
|
@ -0,0 +1,114 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="Add padding to string"><title>Add padding to string — add_padding • stRoke</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Add padding to string — add_padding"><meta property="og:description" content="Add padding to string"><meta property="og:image" content="https://agdamsbo.github.io/stRoke/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]--></head><body>
|
||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||
|
||||
|
||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.9.1</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||
<ul class="navbar-nav me-auto"><li class="active nav-item">
|
||||
<a class="nav-link" href="../reference/index.html">Reference</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
||||
<a class="dropdown-item" href="../articles/ds2dd.html">ds2dd</a>
|
||||
<a class="dropdown-item" href="../articles/toolbox.html">Toolbox</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
||||
</li>
|
||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
||||
|
||||
<ul class="navbar-nav"><li class="nav-item">
|
||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/stRoke/" aria-label="github">
|
||||
<span class="fab fa fab fa-github fa-lg"></span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</ul></div>
|
||||
|
||||
|
||||
</div>
|
||||
</nav><div class="container template-reference-topic">
|
||||
<div class="row">
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.png" class="logo" alt=""><h1>Add padding to string</h1>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/stRoke/blob/HEAD/R/add_padding.R" class="external-link"><code>R/add_padding.R</code></a></small>
|
||||
<div class="d-none name"><code>add_padding.Rd</code></div>
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Add padding to string</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">add_padding</span><span class="op">(</span><span class="va">d</span>, length <span class="op">=</span> <span class="cn">NULL</span>, after <span class="op">=</span> <span class="cn">FALSE</span>, pad <span class="op">=</span> <span class="st">"0"</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>d</dt>
|
||||
<dd><p>vector of strings or numbers</p></dd>
|
||||
|
||||
|
||||
<dt>length</dt>
|
||||
<dd><p>final string length</p></dd>
|
||||
|
||||
|
||||
<dt>after</dt>
|
||||
<dd><p>if padding should be added after as opposed to default before</p></dd>
|
||||
|
||||
|
||||
<dt>pad</dt>
|
||||
<dd><p>padding string of length 1</p></dd>
|
||||
|
||||
</dl></div>
|
||||
<div class="section level2">
|
||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||
|
||||
|
||||
<p>vector or character strings of same length.</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">add_padding</span><span class="op">(</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="fl">1</span><span class="op">:</span><span class="fl">200</span>,<span class="fl">5</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "112" "186" "030" "014" "028"</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
</nav></aside></div>
|
||||
|
||||
|
||||
<footer><div class="pkgdown-footer-left">
|
||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||
</div>
|
||||
|
||||
<div class="pkgdown-footer-right">
|
||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
||||
</div>
|
||||
|
||||
</footer></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
|
|
@ -114,51 +114,51 @@ frame, will assume first column is name.</p></dd>
|
|||
<span class="r-out co"><span class="r-pr">#></span> [1] 95 96 97 98 99 100</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-in"><span><span class="va">ds</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>nm<span class="op">=</span><span class="fu"><a href="https://rdrr.io/r/base/paste.html" class="external-link">paste0</a></span><span class="op">(</span><span class="st">"Sub"</span>,</span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/sprintf.html" class="external-link">sprintf</a></span><span class="op">(</span><span class="st">"%03s"</span>, <span class="fu"><a href="https://rdrr.io/r/base/colnames.html" class="external-link">rownames</a></span><span class="op">(</span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="talos.html">talos</a></span><span class="op">)</span><span class="op">)</span><span class="op">)</span>,<span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="talos.html">talos</a></span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="add_padding.html">add_padding</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/colnames.html" class="external-link">rownames</a></span><span class="op">(</span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="talos.html">talos</a></span><span class="op">)</span><span class="op">)</span><span class="op">)</span>,<span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="talos.html">talos</a></span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><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="fu">chunks_of_n</span><span class="op">(</span><span class="va">ds</span>,<span class="fl">7</span>,pattern<span class="op">=</span><span class="st">"Sub[0-9]{3}"</span>,label<span class="op">=</span><span class="st">"grp"</span><span class="op">)</span>,<span class="fl">2</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-NA-NA`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-Sub038-Sub011`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> nm rtreat mrs_1 mrs_6 hypertension diabetes civil</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 38 Sub 38 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 38 Sub038 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 434 Sub434 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 588 Sub588 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 42 Sub 42 Active 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 42 Sub042 Active 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 160 Sub160 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 174 Sub174 Active 0 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 Sub 11 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 Sub011 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-Sub601-NA`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-Sub601-Sub062`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> nm rtreat mrs_1 mrs_6 hypertension diabetes civil</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 601 Sub601 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 412 Sub412 Active 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 88 Sub 88 Placebo 1 1 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 56 Sub 56 Placebo 0 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 88 Sub088 Placebo 1 1 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 56 Sub056 Placebo 0 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 235 Sub235 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 205 Sub205 Active 3 3 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 62 Sub 62 Active 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 62 Sub062 Active 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-in"><span><span class="co">## Please notice that no sorting is performed. This is on purpose to preserve</span></span></span>
|
||||
<span class="r-in"><span><span class="co">## original sorting. If sorting is intended, try something like this:</span></span></span>
|
||||
<span class="r-in"><span><span class="va">ds</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/order.html" class="external-link">order</a></span><span class="op">(</span><span class="va">ds</span><span class="op">$</span><span class="va">nm</span><span class="op">)</span>,<span class="op">]</span> <span class="op">|></span> <span class="fu">chunks_of_n</span><span class="op">(</span><span class="fl">7</span>,pattern<span class="op">=</span><span class="st">"Sub[0-9]{3}"</span>,label<span class="op">=</span><span class="st">"grp"</span><span class="op">)</span> <span class="op">|></span> </span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="fl">2</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-NA-NA`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-Sub001-Sub020`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> nm rtreat mrs_1 mrs_6 hypertension diabetes civil</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Sub 1 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 Sub 2 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 Sub 7 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 Sub 9 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 Sub 11 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 13 Sub 13 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 20 Sub 20 Placebo 1 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Sub001 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 Sub002 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 Sub007 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 Sub009 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 Sub011 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 13 Sub013 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 20 Sub020 Placebo 1 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-NA-NA`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`grp-Sub022-Sub038`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> nm rtreat mrs_1 mrs_6 hypertension diabetes civil</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 Sub 22 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 26 Sub 26 Placebo 2 4 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 28 Sub 28 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 29 Sub 29 Placebo 2 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 33 Sub 33 Placebo 0 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 34 Sub 34 Active 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 38 Sub 38 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 Sub022 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 26 Sub026 Placebo 2 4 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 28 Sub028 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 29 Sub029 Placebo 2 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 33 Sub033 Placebo 0 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 34 Sub034 Active 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 38 Sub038 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 68 KiB |
|
@ -63,6 +63,11 @@
|
|||
|
||||
<dl><dt>
|
||||
|
||||
<code><a href="add_padding.html">add_padding()</a></code>
|
||||
</dt>
|
||||
<dd>Add padding to string</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="age_calc.html">age_calc()</a></code>
|
||||
</dt>
|
||||
<dd>Calculate age in years, months, or days</dd>
|
||||
|
|
|
@ -94,15 +94,15 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
|||
<span class="r-in"><span><span class="fu">label_select</span><span class="op">(</span><span class="va">labels_all</span>,<span class="va">vars</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[1]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> hypertension ~ "Known hypertension"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <environment: 0x556388413c80></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <environment: 0x556180add4b8></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[2]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> diabetes ~ "Known diabetes"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <environment: 0x556388413c80></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <environment: 0x556180add4b8></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[3]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mrs_1 ~ "One month mRS"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <environment: 0x556388413c80></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <environment: 0x556180add4b8></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co">## With gtsummary::tbl_summary()</span></span></span>
|
||||
|
|
|
@ -120,8 +120,8 @@ as borders in case of y!=NULL.</p></dd>
|
|||
<span class="r-in"><span><span class="va">x</span> <span class="op"><-</span> <span class="fl">1</span><span class="op">:</span><span class="fl">450</span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span> <span class="op"><-</span> <span class="fl">6</span><span class="op">:</span><span class="fl">750</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="fu">quantile_cut</span><span class="op">(</span><span class="va">aa</span>,groups<span class="op">=</span><span class="fl">4</span>,detail.list<span class="op">=</span><span class="cn">FALSE</span><span class="op">)</span><span class="op">)</span> <span class="co">## Cuts quartiles</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1,260] (260,500] (500,744] (744,1e+03] </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 500 501 499 500 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1,263] (263,504] (504,743] (743,1e+03] </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 501 499 500 500 </span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
|
|
@ -171,8 +171,8 @@ a time zone that is recognized by the user's OS.</p></dd>
|
|||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 2 × 7</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> SUMMARY DTSTART DTEND UID LOCATION URL </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Conference 2020-02-10 <span style="color: #949494;">12:00:00</span> 2020-02-13 <span style="color: #949494;">13:00:00</span> ical-c1d368… Confere… http…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> Lunch 2020-02-11 <span style="color: #949494;">10:00:00</span> 2020-02-11 <span style="color: #949494;">11:00:00</span> ical-0cb59a… Confere… http…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Conference 2020-02-10 <span style="color: #949494;">12:00:00</span> 2020-02-13 <span style="color: #949494;">13:00:00</span> ical-7f6e9e… Confere… http…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> Lunch 2020-02-11 <span style="color: #949494;">10:00:00</span> 2020-02-11 <span style="color: #949494;">11:00:00</span> ical-eb2e36… Confere… http…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 1 more variable: DESCRIPTION <chr></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
</code></pre></div>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -21,6 +21,9 @@
|
|||
<url>
|
||||
<loc>https://agdamsbo.github.io/stRoke/news/index.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/stRoke/reference/add_padding.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://agdamsbo.github.io/stRoke/reference/age_calc.html</loc>
|
||||
</url>
|
||||
|
|
Loading…
Reference in New Issue
Block a user