Introduction to r-lib type safety checks https://josiahparry.com/posts/2024-06-30-type-safety/
Tag: programming
R and Visual Studio Code
Setup blog post by Aaron Schiff: https://schiff.co.nz/en/blog/r-and-vscode/
R in Visua Studio by the Visual Studio Code folks: https://code.visualstudio.com/docs/languages/r
duckplyr: dplyr + DuckDB
DuckDB released a new R package – duckplyr, which enables running dplyr functions using the DuckDB engine on the backend (for large datasets) https://github.com/duckdblabs/duckplyr
SQL: I always need a refresh
The Querynomicon by “Mad Arab” Abdul Alhazred or Greg Wilson. Your pick. https://gvwilson.github.io/sql-tutorial/
I haven’t done an animation in R in ages
So I needed to remember how to do it. Thie post “Building an animation step-by-step with gganimate” is pretty helpful:
https://www.alexcookson.com/post/2020-10-18-building-an-animation-step-by-step-with-gganimate/
Getting rid of convergence information in asreml
I am coding simulations where I call asreml() and it was taking longer than necessary, because it was sending the convergence information to the screen. The trick to get rid of that is to use the trace = FALSE option as in
asreml(trait_1 ~ 1, random = ~ mum, data = current_trial, trace = FALSE)
Getting rid of bars and outliers in boxplots
Sometimes I am testing graphs and I want to get rid of the lines (coef = 0) and outliers (outlier.shape = NA), particularly if I’m overlapping points.
geom_boxplot(coef = 0, outlier.shape = NA)
A good entry point to Julia
Danielle Navarro wrote a three-post series introducing Julia almost from scratch. Fantastic work. Bookmarking.
- A foundation in Julia https://blog.djnavarro.net/posts/2024-03-01_julia-foundation/
- Working with data in Julia https://blog.djnavarro.net/posts/2024-03-02_julia-data-frames/
- Plotting data in Julia https://blog.djnavarro.net/posts/2024-03-03_julia-plots/