Learn R Programming

⚠️There's a newer version (25.9.2) of this package.Take me there.

stRoke package

This is an R-toolbox of custom functions for convenient data management and analysis in clinical health research and teaching. The package is mainly collected for personal use, but any use beyond that is encouraged. This package has migrated functions from the agdamsbo/daDoctoR-package, and new functions has been added.

Contribute

This package is shared on GitHub, and you are very welcome to contribute by opening an issue or a pull request.

Installation

The package can be installed directly from CRAN:

install.packages("stRoke")

The latest version in development can be installed from GitHub:

remotes::install_github("agdamsbo/stRoke")

Copy Link

Version

Install

install.packages('stRoke')

Monthly Downloads

310

Version

24.10.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andreas Gammelgaard Damsbo

Last Published

October 25th, 2024

Functions in stRoke (24.10.1)

pase_calc

PASE score calculator
ds2dd

DEPRECATED Moved to REDCapCAST::ds2dd() | Data set to data dictionary function
print.win_Prob

Prints win_prob results
str_extract

Extract string based on regex pattern
talos

Data frame with sample of TALOS data
win_prob

Calculates the probability of winning
write_ical

MOVED Write ical object
source_lines

Source Lines from a File
stRoke-package

stRoke: Clinical Stroke Research
quantile_cut

MOVED Easy function for splitting numeric variable in quantiles
score

Data frame with sample data of cognitive testing score
cpr_check

CPR check
color_plot

Plot color examples with contrasting text
contrast_text

MOVED Contrast Text Color
add_padding

MOVED Add padding to string
chunks_of_n

MOVED Split to chunks of size n
age_calc

Calculate age in years, months, or days
ci_plot

Confidence interval plot with point estimate
cprs

Data frame of 200 cpr numbers
cpr_dob

Extracting date of birth from CPR
cpr_female

Determine female sex from CPR
label_select

Helper function for labels in gtsummary
mfi_domains

MFI domain score calculator
n_chunks

Splits in n chunks
pase

Data frame with sample data of PASE score questionnaire
files_filter

MOVED Filter files in a folder
multi_rev

Reverses relevant MFI subscores
metadata_names

Vector of REDCap metadata headers
generic_stroke

Generic stroke study outcome
index_plot

Plot multidimensional cognitive test scores