Changelog
Source:NEWS.md
stRoke 23.9.1
Functions:
NEW:
chunks_of_n()
usessplit()
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.NEW:
n_chunks()
is the opposite ofchunks_of_n()
and is simply a wrapper for this function to create list of n chunks based of provided vector or data frame.NEW:
str_extract()
will extract the substring of a character string given by a regex pattern. Came to be as a helper function for labelling chunks inchunks_of_n()
, but will be useful on its own. Other functions doing the same exists, but this is my take only using base R. Draws onREDCapCAST::strsplitx()
, where splits can be performed around a pattern.NEW:
add_padding()
was created out of frustration. I wanted to add padding usingsprintf("%0s",string)
, 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.Deprecation:
ds2dd()
moved toREDCapCAST::ds2dd()
as this is where it belongs.
stRoke 23.6.2
Functions:
- NEW:
pase_calc()
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.
Data:
- NEW:
pase
sample questionnaire data. Non-identifiable and for use with thepase_calc()
function.
stRoke 23.4.1
CRAN release: 2023-04-13
stRoke 23.1.8
Functions:
- write_ical() is an easy to use implementation of the package
library(calendar)
for easy conversion of spreadsheets to ical object. Export an .ics file usingcalendar::ic_write()
. - contrast_text() calculates the best contrast text color for a given background color. For use in graphics.
stRoke 23.1.7
CRAN release: 2023-01-24
Notes:
- This is the version first published on CRAN as of 24.jan.2023.
- This is also the version first published to zenodo.org, and with corresponding doi: 10.5281/zenodo.7572023.
stRoke 23.1.6 - failed due to dependencies
Functions:
- win_prop() added to implement the suggested methods in DOI: 10.1161/STROKEAHA.121.037744, as an implementation of “Tournament Methods” also found in
library(genodds)
. The function is based on the spreadsheet provided by the authors. A print.win_Prop is also added for printing.
stRoke 0.23.1.4
Functions:
- plot_olr() has been deprecated and removed.
- ci_plot() functionality extended to include logistic model plotting.
- age_calc() use vapply() instead of sapply()
- gt_plot() function added to plot gt elements as ggplots. From bstfun. Not all done and satisfied with the layout with patchwork.