Skip to content

Commit

Permalink
New description and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
agdamsbo committed Sep 5, 2023
1 parent bd647a9 commit aed6ef0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: stRoke
Title: Clinical Stroke Research
Version: 23.6.3
Version: 23.9.1
Authors@R:
person("Andreas Gammelgaard", "Damsbo", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7559-1154"))
Expand Down
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

S3method(print,win_Prob)
export(age_calc)
export(chunks_of_n)
export(ci_plot)
export(color_plot)
export(contrast_text)
Expand All @@ -13,9 +14,11 @@ export(files_filter)
export(generic_stroke)
export(index_plot)
export(label_select)
export(n_chunks)
export(pase_calc)
export(quantile_cut)
export(source_lines)
export(str_extract)
export(win_prob)
export(write_ical)
import(ggplot2)
Expand Down
12 changes: 12 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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

### Bug
Expand Down
3 changes: 3 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ORCID
OpenAI's
PASE
REDCap
REDCapCAST
REDCapRITS
RStudio
Randomisation
Expand Down Expand Up @@ -68,6 +69,7 @@ ics
inteRgrate
jan
jss
labelling
lm
lst
luminance
Expand All @@ -78,6 +80,7 @@ rect
rgb
sapply
stackoverflow
strsplit
teppo
vapply
vec
Expand Down

0 comments on commit aed6ef0

Please sign in to comment.