Learn R Programming

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

619

Version

23.9.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andreas Gammelgaard Damsbo

Last Published

September 7th, 2023

Functions in stRoke (23.9.1)

n_chunks

Splits in n chunks
label_select

Helper function for labels in gtsummary
pase

Data frame with sample data of PASE score questionnaire
generic_stroke

Generic stroke study outcome
cprs

Data frame of 200 cpr numbers
source_lines

Source Lines from a File
stRoke-package

stRoke: Clinical Stroke Research
metadata_names

Vector of REDCap metadata headers
index_plot

Plot multidimensional cognitive test scores
color_plot

Plot color examples with contrasting text
chunks_of_n

Split to chunks of size n
contrast_text

Contrast Text Color
cpr_dob

Extracting date of birth from CPR
pase_calc

PASE score calculator
print.win_Prob

Prints win_prob results
win_prob

Calculates the probability of winning
quantile_cut

Easy function for splitting numeric variable in quantiles
score

Data frame with sample data of cognitive testing score
write_ical

Write ical object
str_extract

Extract string based on regex pattern
talos

Data frame with sample of TALOS data
ci_plot

Confidence interval plot with point estimate
ds2dd

DEPRECATED Moved to REDCapCAST::ds2dd() | Data set to data dictionary function
files_filter

Filter files in a folder
add_padding

Add padding to string
cpr_check

CPR check
cpr_female

Determine female sex from CPR
age_calc

Calculate age in years, months, or days