Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomaztk/useless_r_functions
Useless R Functions. That's it
https://github.com/tomaztk/useless_r_functions
r r-language r-programming r-script r-scripts r-stats
Last synced: 4 days ago
JSON representation
Useless R Functions. That's it
- Host: GitHub
- URL: https://github.com/tomaztk/useless_r_functions
- Owner: tomaztk
- License: mit
- Created: 2020-10-16T21:01:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T17:15:24.000Z (5 months ago)
- Last Synced: 2024-12-15T08:07:09.273Z (11 days ago)
- Topics: r, r-language, r-programming, r-script, r-scripts, r-stats
- Language: R
- Homepage:
- Size: 1.91 MB
- Stars: 126
- Watchers: 11
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Useful - Useless R functions - UUR
![](http://img.shields.io/badge/useful-useless-green.svg)
![](https://img.shields.io/github/forks/tomaztk/useless_r_functions?style=social)
`UUR`
is useful, yet useless set of custom R functions using `{base}` for
your everyday R use. That's it :-) And nothing more.## Feature Summary
- Mixed Cases ([blog post](https://tomaztsql.wordpress.com/2020/10/17/little-useless-useful-r-function/))
- DataFrame maker ([blog post](https://tomaztsql.wordpress.com/2020/10/20/little-useless-useful-r-function-dataframe-maker/))
- R Job Title generator ([blog post](https://tomaztsql.wordpress.com/2020/10/24/little-useless-useful-r-function-r-jobs-title-generator/))
- Psychedelic Square Root visual with **x11()** ([blog post](https://tomaztsql.wordpress.com/2020/10/26/little-useless-useful-r-function-psychedelic-square-root-with-x11/))
- Friday 13th obvious searcher
- Full moon finder ([blog post](https://tomaztsql.wordpress.com/2020/10/30/little-useless-useful-r-function-full-moon-finder/))
- Lorem Ipsum R text generator ([blog post](https://tomaztsql.wordpress.com/2020/11/02/little-useless-useful-r-functions-r-lorem-ipsum/))
- Wacky Password generator ([blog post](https://tomaztsql.wordpress.com/2020/11/06/little-useless-useful-r-functions-wacky-password-generator/))
- Play Rock-Paper-Scissors with your R Engine ([blog post](https://tomaztsql.wordpress.com/2020/11/13/little-useless-useful-r-functions-play-rock-paper-scissors-with-your-r-engine/))
- Duplicate and frequent functions used in many R packages ([blog post](https://tomaztsql.wordpress.com/2020/11/18/little-useless-useful-r-functions-same-function-names-from-different-packages-or-namespaces/))
- Making Scatter Plot from Image file ([blog post](https://tomaztsql.wordpress.com/2020/11/21/little-useless-useful-r-functions-making-scatter-plot-from-an-image/))
- Function that generates calculator script ([blog post](https://tomaztsql.wordpress.com/2020/11/30/little-useless-useful-r-functions-script-that-generates-calculator-script/))
- Word scrambler ([blog post](https://tomaztsql.wordpress.com/2020/12/24/little-useless-useful-r-functions-word-scrambler/))
- Folder TreeMap ([blog post](https://tomaztsql.wordpress.com/2021/01/01/little-useless-useful-r-functions-folder-treemap/))
- Playing stack of cards ([blog post](https://tomaztsql.wordpress.com/2021/01/03/little-useless-useful-r-functions-playing-stack-of-cards/))
- R to Python dataFrame ([blog post](https://tomaztsql.wordpress.com/2021/01/05/little-useless-useful-r-functions-create-pandas-dataframe-from-r-data-frame/))
- Four Fours ([blog post](https://tomaztsql.wordpress.com/2021/01/07/little-useless-useful-r-functions-mathematical-puzzle-of-four-fours/))
- Countdown Number Puzzle ([blog post](https://tomaztsql.wordpress.com/2021/01/11/little-useless-useful-r-functions-countdown-number-puzzle/))
- R Version ([blog post](https://tomaztsql.wordpress.com/2021/02/03/little-useless-useful-r-functions-r-version/))
- R Poem for Valentine ([blog post](https://tomaztsql.wordpress.com/2021/02/08/little-useless-useful-r-functions-useless-r-poem-for-valentine/))
- Pipe (%>%) for ggplot2 ([blog post](https://tomaztsql.wordpress.com/2021/02/12/little-useless-useful-r-functions-use-pipe-in-ggplot2/))
- L-Systems ([blog post](https://tomaztsql.wordpress.com/2021/02/17/little-useless-useful-r-functions-using-l-systems-for-useless-writing/))
- Letter frequency in numbers ([blog post](https://tomaztsql.wordpress.com/2021/03/22/little-useless-useful-r-functions-letter-frequency-in-a-vector-of-numbers/))
- Using SQL Syntax for wrangling data frames ([blog post](https://tomaztsql.wordpress.com/2021/04/27/using-sql-for-r-data-frames-with-sqldf/))
- Looping through variable names and generating plots ([blog post](https://tomaztsql.wordpress.com/2021/05/24/little-useless-useful-r-functions-looping-through-variable-names-and-generating-plots/))
- Inserting variable values into strings ([blog post](https://tomaztsql.wordpress.com/2021/07/09/little-useless-useful-r-functions-inserting-variable-values-into-strings/))
- Colourful ggplot line graphs ([blog post](https://tomaztsql.wordpress.com/2021/07/16/little-useless-useful-r-functions-colourful-ggplot-line-graphs/))
- Drawing calendar([blog post](https://tomaztsql.wordpress.com/2021/07/19/little-useless-useful-r-functions-drawing-calendar/))
- Useless Year progress bar with spinning cursor ([blog post](https://tomaztsql.wordpress.com/2021/09/13/little-useless-useful-r-functions-year-progress-bar/))
- Useless analog and digital clock ([blog post](https://tomaztsql.wordpress.com/2021/09/16/little-useless-useful-r-functions-useless-analog-and-digital-clocks/))
- Animated showcase of plot function ([blog post](https://tomaztsql.wordpress.com/2021/10/18/little-useless-useful-r-functions-useless-animated-showcase-of-plot-function/))
- Interface for learning irregular verbs ([blog post](https://tomaztsql.wordpress.com/2021/10/22/little-useless-useful-r-functions-useless-interface-for-learning-irregular-verbs/))
- Interactive Voronoi diagram generator ([blog post](https://tomaztsql.wordpress.com/2021/11/01/little-useless-useful-r-functions-interactive-voronoi-diagram-generator-using-r-and-x11/))
- Mastermind board game for R ([blog post](https://tomaztsql.wordpress.com/2022/01/07/little-useless-useful-r-functions-mastermind-board-game-for-r/))
- Making boxplot from a picture ([blog post](https://tomaztsql.wordpress.com/2022/02/02/little-useless-useful-r-functions-making-boxplot-from-a-picture/))
- Animating datasets ([blog post](https://tomaztsql.wordpress.com/2022/04/29/little-useless-useful-r-functions-animating-datasets/))
- Using xspline to create wacky signatures ([blog post](https://tomaztsql.wordpress.com/2023/03/05/little-useless-useful-r-functions-using-xspline-to-create-wacky-signatures/))
- Transforming dataframe to markdown table ([blog post](https://tomaztsql.wordpress.com/2023/03/26/little-useless-useful-r-functions-transforming-dataframe-to-markdown-table/))
- Old phone converted from text to numbers ([blog post](https://tomaztsql.wordpress.com/2023/05/07/little-useless-useful-r-functions-old-phone-converted-from-text-to-numbers/))
- Goldbach's conjecture and sieve of sundaram ([blog post](https://tomaztsql.wordpress.com/2023/08/12/little-useless-useful-r-functions-goldbachs-conjecture-and-sieve-of-sundaram/))
- Pretty dataframe definition ([Git merge by rachelostic](https://github.com/tomaztk/Useless_R_functions/blob/main/functions/pretty_dataframe_definitions.R))## Cloning the repository
You can follow the steps below to clone the repository.
```
git clone https://github.com/tomaztk/Useless_R_functions.git
```## Quickstart
1. Clone the repository
2. Start using any of the functions e.g. `IsItFriday13()`
3. Explore and enjoy!``` r
# non-deterministic
IsItFriday13 <- function(){
#da <- "2020-11-13"
da <- Sys.Date()
rn <- as.POSIXlt(da)$wday
d <- as.POSIXlt(da)$mday
if (rn == 5 & d == 13){
print("It is a Friday the 13th!")
} else {
print("Not a Friday 13th!")
}
}IsItFriday13()
```## Contributors and co-authors
Thanks to these wonderful community people making and helping this useless R functions better. Contributions of any kind is highly appreciated!
Riccardo Porreca
retooooo
mrdwab
TFellet
rachelostic## Contact
Feel free to get in touch for new useful-useless functions.# Gallery (from blog)
# Vignettes
#### General examples
# ToDo
- Possibly change some functionalities to work properly on UNIX / WIN machines
- `x11()` and `CLI export`
- A vignette finished; write proper feature details!
- Create useless R package.
- Add Documentation for each function.