New description and changes

This commit is contained in:
Andreas Gammelgaard Damsbo 2023-09-05 10:08:52 -07:00
parent bd647a9acf
commit aed6ef02b0
5 changed files with 19 additions and 4 deletions

View File

@ -1,3 +0,0 @@
Version: 23.6.3
Date: 2023-07-03 12:02:38 UTC
SHA: ff9270d1e9493760f5aef123d52f48e0148f8da2

View File

@ -1,6 +1,6 @@
Package: stRoke Package: stRoke
Title: Clinical Stroke Research Title: Clinical Stroke Research
Version: 23.6.3 Version: 23.9.1
Authors@R: Authors@R:
person("Andreas Gammelgaard", "Damsbo", , "agdamsbo@clin.au.dk", role = c("aut", "cre"), person("Andreas Gammelgaard", "Damsbo", , "agdamsbo@clin.au.dk", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7559-1154")) comment = c(ORCID = "0000-0002-7559-1154"))

View File

@ -2,6 +2,7 @@
S3method(print,win_Prob) S3method(print,win_Prob)
export(age_calc) export(age_calc)
export(chunks_of_n)
export(ci_plot) export(ci_plot)
export(color_plot) export(color_plot)
export(contrast_text) export(contrast_text)
@ -13,9 +14,11 @@ export(files_filter)
export(generic_stroke) export(generic_stroke)
export(index_plot) export(index_plot)
export(label_select) export(label_select)
export(n_chunks)
export(pase_calc) export(pase_calc)
export(quantile_cut) export(quantile_cut)
export(source_lines) export(source_lines)
export(str_extract)
export(win_prob) export(win_prob)
export(write_ical) export(write_ical)
import(ggplot2) import(ggplot2)

12
NEWS.md
View File

@ -1,3 +1,15 @@
# stRoke 23.9.1
### Functions:
* NEW: `chunks_of_n()` uses `split()` 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 of `chunks_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 in `chunks_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 on `REDCapCAST::strsplitx()`, where splits can be performed around a pattern.
* Deprecation: `ds2dd()` moved to `REDCapCAST::ds2dd()` as this is where it belongs.
# stRoke 23.6.3 # stRoke 23.6.3
### Bug ### Bug

View File

@ -16,6 +16,7 @@ ORCID
OpenAI's OpenAI's
PASE PASE
REDCap REDCap
REDCapCAST
REDCapRITS REDCapRITS
RStudio RStudio
Randomisation Randomisation
@ -68,6 +69,7 @@ ics
inteRgrate inteRgrate
jan jan
jss jss
labelling
lm lm
lst lst
luminance luminance
@ -78,6 +80,7 @@ rect
rgb rgb
sapply sapply
stackoverflow stackoverflow
strsplit
teppo teppo
vapply vapply
vec vec