Some love for Base R. Part 3
It seems a few people have found useful the reminders of base-R functionality covered in “Some love for Base R” Part 1 and Part 2. So I will keep on...continue reading.
It seems a few people have found useful the reminders of base-R functionality covered in “Some love for Base R” Part 1 and Part 2. So I will keep on...continue reading.
Where were we? Giving some love to base-R and putting together the idea that it is possible to write R very clearly when using base. Two sets of typical issues:...continue reading.
For a long time it has bothered me when people look down at base-R (meaning the set of functions that comes in a default installation), as it were a lesser...continue reading.
Tiling is one of the big pieces to put together nice, interactive maps. How The Post is replacing Mapbox with open source solutions describe the tech behind solving this problem...continue reading.
Just to remember where things are in my neovim installation in MacOS: The init file follows the structure presented in here: https://github.com/junegunn/vim-plug pointing to the location of the plugins as:continue reading.
Between covid-19 news and announcements of imminent Russia-Ukraine wars I needed a bit of a distraction. Sooo, here it is how to create an n x n autocorrelation matrix based...continue reading.
I came across this problem in Twitter: The basic pieces of the problem are: We need to generate pseudorandom numbers with an identical distribution, add them up until they go...continue reading.
I think programming, aka coding, is a fun activity. We are solving a problem subject to a set of constraints that can be time, memory, quantity of code, language, etc....continue reading.
In Mac OS I was getting an annoying warning when compiling Cpp code via Rcpp in R: Adding a file called Makevars in ~/.R defining FLIBS to the actual location...continue reading.
In our research group we often have people creating statistical models that end up in publications but, most of the time, the practical implementation of those models is lacking. I...continue reading.
One of the tools we use in our research is NIR (Near-Infrared Spectroscopy), which we apply to thousands of samples to predict their chemical composition. Each NIR spectrum is contained...continue reading.
In quantitative genetic analyses we often use a pedigree to represent the relatedness between individuals, so this is accounted in the analyses, because the observations are not independent of each...continue reading.
When you have students working in a project there is always an element of quality control. Some times the results just make sense, while others we are suspicious about something...continue reading.
If you search for data analysis workflows for research there are lots of blog posts on using R + databases + git, etc. While in some cases I may end...continue reading.
I was having a conversation about dropping the minimum threshold (currently 5% of the vote) for political parties to get representation in Parliament. The obvious question is how would seat...continue reading.
I was reading an article about the results of our latest elections where I was having a look at the spatial pattern for votes in my city. I was wondering...continue reading.
I was reading a piece by Graeme Edgeler who, near the end, asked “Where are New Zealand’s bellwether electorates?”. I didn’t know where the data came from or how was...continue reading.
I have continued playing with the tidyverse for different parts of a couple of projects. Often I need to apply a function by groups of observations; sometimes, that function returns...continue reading.
One of the main uses for R is for exploration and learning. Let’s say that I wanted to learn simple linear regression (the bread and butter of statistics) and see...continue reading.
I started using R ages ago and have happily lived in mostly-base-R for data manipulation. Once in a while I move to something that makes a big difference, like ggplot2...continue reading.