The clinicalr package is a collection of R functions to perform (basic) clinical calculations in medical research. User documentation can be found on GitHub.io.
Help and pull requests are more than welcome.
Reliable
NA
values are provided, functions will return NA
unless otherwise specified.Practical
If applicable, functions will return numeric values with a unit attribute using the units package. The idea is to be as explicit as possible to the end user about the generated data. However, the unit attributes may sometimes be bothersome. Use units::drop_units(x)
to drop the unit attribute. Load the ggforce package (an extension of ggplot) if you want to incorporate the unit attribute in the scales of a ggplot figure (see ggforce reference page Position scales for units data).
Clinicalr is not (yet) available on CRAN. Install devtools. Then use devtools to install clinicalr directly from GitHub using the remotes package.
install.packages("remotes")
remotes::install_github("ls31/clinicalr")
remotes::install_github("lc31/clinicalr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.