![](https://cdn.masto.host/genomicsocial/accounts/avatars/109/296/688/747/855/894/original/614cabd4141a1382.png)
2024-05-25 10:00:01
Linear programs help to find optimal solutions based on a set of constrains. I used {ompr} before, but the new package {tidyLP} looks promising and integrates with the tidyverse. #rstats #linearprograms #optimization
Linear programs help to find optimal solutions based on a set of constrains. I used {ompr} before, but the new package {tidyLP} looks promising and integrates with the tidyverse. #rstats #linearprograms #optimization
Cannot find any ready-to-use open source software (or even a combination of software) that would solve the travelling salesperson problem using public transit. Am I missing something? Any suggestions? #rstats #gtfs #urbanmobility
Are you making slides with Quarto or R Markdown and need a timer e.g. for breaks or group work? There is the {countdown} package for you: #rstats
I have a habbit of making (too) many (small) packages for functionality that might be reused in different context. {box} might be an alternative by making scripts into modlues that can be loaded: #RStats
GitHub Actions for the R language: Makes automatic testing of your R package much easier and making sure your package works on different OS and R versions is a matter of just a few lines of yaml: https://github.com/r-lib/actions
Simple #Rstats problem: Suppose you have a vector like this:
vec <- c('A/B', 'C/D', 'E/F')
For each element, you want the value after the '/', i.e. B, D, and F. How would you do it?
After years and years of using R, I just learned that you can do this:
sapply(strsplit(vec, '/'), '[', 2)
Did you KNOW this? The extraction operator '[' is given as a function to sapply() here and the 2 as an argument. 🤯
If you knew this: WHY DIDN’T YOU TELL ME?!?
The fastverse is a suite of complementary high-performance packages for statistical computing and data manipulation in R. #rstats
Customize what happens when you start R: #rstats #environment
Do you need inspiration how to present a dataset in a clear figure and what package to use? Check out #rstats
A pictures says more than 1000 words. How much more can an audio representation of your data tell you? #rstats <…
🚀 Introducing rJavaEnv: A new R package to manage multiple Java JDKs for your R projects! 🎉
#rstats
The {esquisse} package makes it easy to plot your data in different ways with a drag and drop interface: #rstats
Cute comics of R functions: #rstats
r-graph-gallery.com provides example code for a variety of chart types, both in base R and ggplot: #rstats
Use multi level models with {parsnip}: http://multilevelmod.tidymodels.org/ #rstats #ML
R doesnt need to be a hard and scientific tool 📈. You can use it to make art 🎨: #rstats
The inner working of parquette/arrow data in R: #rstats
Add highlighting to your quarto presentation using the RoughNotation library: #rstats
Yet another package to speed up different calculations in R: #rstats
{dtrack} makes documentation of data wrangling part of the analysis and creates pretty flow charts: #rstats
Are you interested in how dependency-heavy your (or another) package is and why? #rstats
Need some data to test a plot idea or algorithm? On #rstats #synthetic
Lets be honest, we spend too much time cleaning data. {janitor} can help with that: #rstats
Add some swag to your ggplots, with fontawesome symbols and colors: #rstats
Add some swag to your ggplots, with fontawesome symbols and colors: #rstats
If you use Quarto to make presentations for a professional setting, it is important to choose the right theme, e.g. #rstats
Its good to have many tests in your R package, but it can be a pain to debug some failing tests when it happens. {lazytest} for the rescue: only rerun the failing tests, until they pass: #RStats
TidyX: screencasts explaining different aspects of the R language and the coding process. #rstats
{purrr} has some lesser known functions that make handling of failing function calls easier: safely, quietly, possibly: #rstats…
Interactive resizing of picture and table content in Rmd and Quarto: #rstats
The {conflicted} package makes sure that namespace conflicts are solved explicitly and prevents unpleasent surprises: #rstats
Using fonts in R graphics can be tricky at times. {showtext} aims to make it easier: #rstats
Friends Don't Let Friends Make Bad Graphs! Do you agree with the examples of bad graphs and the alternatives Chenxin Li (@chenxinli2.bsky.social) lists at https://github.com/cxli233/FriendsDontLetFriends
If you set limits for a scale (e.g. x-axis) in ggplot, how would you like data outside of that range be handled? There is the oob parameter for that and a set of functions to use with it: https://scales.r-lib.org/reference/oob.html
Sometimes you get data in less than optimal format, e.g. as a png of a figure 😭... In that case https://cran.r-project.org/web/packages/metaDigitise/vignettes/metaDigitise.html might be the rescue.
Find the best contrast between one color and a list of options, e.g. for labels in geom_tile: {prismatic::best_contrast()} https://emilhvitfeldt.github.io/prismatic/reference/best_contrast.html