New documentation and updated changes

This commit is contained in:
Andreas Gammelgaard Damsbo 2023-09-05 14:11:14 -07:00
parent ec38ffa51b
commit 023738981d
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand
S3method(print,win_Prob)
export(add_padding)
export(age_calc)
export(chunks_of_n)
export(ci_plot)

View File

@ -8,6 +8,8 @@
* 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.
* NEW: `add_padding()` was created out of frustration. I wanted to add padding using `sprintf("%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 to `REDCapCAST::ds2dd()` as this is where it belongs.
# stRoke 23.6.3