<!-- Generated by pkgdown: do not edit by hand --><htmllang="en"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"><metacharset="utf-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Changelog • stRoke</title><!-- favicons --><linkrel="icon"type="image/png"sizes="16x16"href="../favicon-16x16.png"><linkrel="icon"type="image/png"sizes="32x32"href="../favicon-32x32.png"><linkrel="apple-touch-icon"type="image/png"sizes="180x180"href="../apple-touch-icon.png"><linkrel="apple-touch-icon"type="image/png"sizes="120x120"href="../apple-touch-icon-120x120.png"><linkrel="apple-touch-icon"type="image/png"sizes="76x76"href="../apple-touch-icon-76x76.png"><linkrel="apple-touch-icon"type="image/png"sizes="60x60"href="../apple-touch-icon-60x60.png"><scriptsrc="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><linkhref="../deps/bootstrap-5.3.1/bootstrap.min.css"rel="stylesheet"><scriptsrc="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><linkhref="../deps/font-awesome-6.4.2/css/all.min.css"rel="stylesheet"><linkhref="../deps/font-awesome-6.4.2/css/v4-shims.min.css"rel="stylesheet"><scriptsrc="../deps/headroom-0.11.0/headroom.min.js"></script><scriptsrc="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><scriptsrc="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><scriptsrc="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><scriptsrc="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><scriptsrc="../deps/search-1.0.0/fuse.min.js"></script><scriptsrc="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><scriptsrc="../pkgdown.js"></script><metaproperty="og:title"content="Changelog"><metaproperty="og:image"content="https://agdamsbo.github.io/stRoke/logo.png"></head><body>
<liclass="nav-item"><aclass="external-link nav-link"href="https://github.com/agdamsbo/stRoke/"aria-label="GitHub"><spanclass="fa fab fa-github fa-lg"></span></a></li>
<ul><li><p>NEW: <code><ahref="../reference/ds2ical.html">ds2ical()</a></code> converts data set to ical format with easy glue string for summary and description. Export .ics file with <code><ahref="https://atfutures.github.io/calendar/reference/ic_write.html"class="external-link">calendar::ic_write()</a></code>.</p></li>
<li><p>UPDATE: <code><ahref="../reference/pase_calc.html">pase_calc()</a></code> updated for uniform column naming in output as well as streamlining the function a bit.</p></li>
<li><p>UPDATE: <code><ahref="../reference/add_padding.html">add_padding()</a></code> updated to include option to add leading and/or tailing string with <code>lead</code> or <code>tail</code>.</p></li>
<li><p>Moving: The following functions are moved to <code>agdamsbo/project.aid</code> to focus on (stroke) trial related functions: <code><ahref="../reference/str_extract.html">str_extract()</a></code>.</p></li>
<li><p>NEW: <code>mfi_calc()</code> calculates domain scores from the MFI questionnaire. Takes data frame of 20 ordered as the questionnaire. Default is to reverse questions with reverse scoring.</p></li>
<ul><li><p>NEW: <code><ahref="../reference/chunks_of_n.html">chunks_of_n()</a></code> uses <code><ahref="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><ahref="../reference/n_chunks.html">n_chunks()</a></code> is the opposite of <code><ahref="../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><ahref="../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><ahref="../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><ahref="../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><ahref="../reference/ds2dd.html">ds2dd()</a></code> moved to <code>REDCapCAST::ds2dd()</code> as this is where it belongs.</p></li>
<ul><li>NEW: <code><ahref="../reference/pase_calc.html">pase_calc()</a></code> function calculates PASE scores from raw questionnaire data. Gives sub scores as well and returns basic data quality and completeness checks. Acknowledges the difference between the scoring manual and the article by Washburn PA. et al.(1999) on including sitting work in the score calculations.</li>
<ul><li>NEW: <code>pase</code> sample questionnaire data. Non-identifiable and for use with the <code><ahref="../reference/pase_calc.html">pase_calc()</a></code> function.</li>
<ul><li>NEW: ‘color_plot()’ function implements the ‘contrast_text()’ and is very much inspired from ‘scales::show_col()’. Passes arguments to the internal ‘contrast_text()’. Tests and all. Took way longer than intended.</li>
<ul><li>NEW: ds2dd() creates a REDCap data dictionary based on a data set for easy upload. A new vignette will be provided for example use. A separate vignette has been added.</li>
<ul><li>write_ical() is an easy to use implementation of the package <code><ahref="https://github.com/atfutures/calendar"class="external-link">library(calendar)</a></code> for easy conversion of spreadsheets to ical object. Export an .ics file using <code><ahref="https://atfutures.github.io/calendar/reference/ic_write.html"class="external-link">calendar::ic_write()</a></code>.</li>
<ul><li>This is the version first published on CRAN as of 24.jan.2023.</li>
<li>This is also the version first published to zenodo.org, and with corresponding <ahref="https://doi.org/10.5281/zenodo.7572023"class="external-link">doi: 10.5281/zenodo.7572023</a>.</li>
<ul><li>redcap_read_tables() has been removed from the package for now. Looking to add it back later as a minimal data acquisition tool.</li>
</ul></div>
</div>
<divclass="section level2">
<h2class="pkg-version"data-toc-text="23.1.6"id="stroke-2316---failed-due-to-dependencies">stRoke 23.1.6 - failed due to dependencies<aclass="anchor"aria-label="anchor"href="#stroke-2316---failed-due-to-dependencies"></a></h2>
<divclass="section level4">
<h4id="new-attempt-at-cran-submission-23-1-6">New attempt at CRAN submission<aclass="anchor"aria-label="anchor"href="#new-attempt-at-cran-submission-23-1-6"></a></h4>
<ul><li>win_prop() added to implement the suggested methods in <ahref="https://doi.org/10.1161/STROKEAHA.121.037744"class="external-link">DOI: 10.1161/STROKEAHA.121.037744</a>, as an implementation of “Tournament Methods” also found in <code><ahref="https://rdrr.io/r/base/library.html"class="external-link">library(genodds)</a></code>. The function is based on the spreadsheet provided by the authors. A print.win_Prop is also added for printing.</li>
<ul><li>plot_olr() has been deprecated and removed.</li>
<li>ci_plot() functionality extended to include logistic model plotting.</li>
<li>age_calc() use vapply() instead of sapply()</li>
<li>gt_plot() function added to plot gt elements as ggplots. From <ahref="https://github.com/MSKCC-Epi-Bio/bstfun"class="external-link">bstfun</a>. Not all done and satisfied with the layout with patchwork.</li>