Feel at Home using R, Thanks to Shortcuts Functions Making it Simple
R.AlphA.Home is a collection of personal functions designed to simplify and streamline common R programming tasks. This package provides reusable tools and shortcuts for frequently used calculations and workflows, making R programming more accessible and efficient.
You can install the released version of R.AlphA.Home from CRAN with:
install.packages("R.AlphA.Home")
Or install the development version from GitHub with:
# install.packages("devtools")
::install_github("R-alpha-act/R.AlphA.Home") devtools
cols_pad()
- Add variables to ease
data usage in pivot tablescompareVars()
- Compare table
variablescountSwitches()
- Create incremented
counters based on start/stop markersimportAll()
- Import and concatenate
multiple data files efficiently (enhanced v1.1.0)left_join_checks()
- Left join
operations with built-in validation checksrdate()
- Generate random dates with
similar usage as r* functionstmr()
- Allow organized tracking of R
code execution time (new in v1.1.0)quickSave()
- Save files with
automatic date prefixing in designated directorysepThsd()
- Quick number formatting
with customizable defaultsprintif()
- Conditionally print
objects based (new in v1.1.0)lum_0_100()
- Adjust graphics window
brightness for comfortable ggplot2 viewingret_lum()
- Adjust brightness of hex
colorsshiny_lum_0_100()
- Set Shiny
background and sidebar colors to chosen grey shadesroot()
- Get root directory of current
source filesetOption()
- Set global options from
named list elements (new in v1.1.0)ralpha_fold()
/
ralpha_unfold()
- Enhanced code folding
functionality (new in v1.1.0)timer()
β Use tmr()
insteadfoldAllBr()
β Use ralpha_fold()
and
ralpha_unfold()
insteadThe package imports several essential R packages: - Data
manipulation: data.table
, dplyr
,
tibble
, tidyr
- Date/time:
lubridate
- String operations:
stringr
, stringi
- Graphics:
ggplot2
, grDevices
- File
operations: openxlsx
, R.utils
-
Shiny: shiny
, shinyWidgets
-
Utilities: rstudioapi
,
magrittr
We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
?function_name
or
help(package = "R.AlphA.Home")
This package is licensed under GPL-3.
Making R programming feel like home, one function at a time. π