This collects together various functions that I find useful.
The primary purpose is to write convenience functions for putting nicely formatted values such as regression estimates, p values and percentages into Rmarkdown documents without long, nested inline code strings with round()
and other calculations.
I dithered around calling this stmisc
or nicethings
and settled with nicethings
as is sounds, well, nicer.
- stringr
- assertthat
- dplyr
# if you don't already have devtools installed
install.packages("devtools")
# install from github
devtools::install_git("https://github.com/simonthelwall/nicethings.git")
Please email me for the zip file of the package. Once you have received the file, please do the following:
- Save the zip file to a convenient location but do not unzip
- Open RStudio
- Run the following line:
install.packages(file.choose(), repos=NULL)
- This will launch a file chooser where you can select the zip file you have just downloaded.
This should install the package to the R package library.
If installation is successful you will then be able to load the package with library(nicethings)
- Download a copy of the project
- Open in RStudio
- Click
Build & Reload
on the build tab
I'd love to receive your suggestions for features. Please see the Contribution guide for more information.