Tag: R
-
Modelling the US Presidential Election in R
In many ways this is a lot easier than modelling the British Labour Party leadership election – we only care about two candidates, Biden and Trump, and they capture the vast majority of the votes, so I feel reasonably confident about my first simplification: ignoring the votes of all others and simply focusing on the…
-
Curses on ncurses
Every programmer will be familiar with something like this… A little while back I wrote a program that simulates – crudely but effectively – a multicore NoC device. I use it to model the execution times of different page replacement algorithms. The input is XML generated via a step by step trace of a working…
-
My first R program
Having used Groovy (which makes the scripting environment feel familiar) and some Scheme (via Structure and Interpretation of Computer Programs), R does feel completely alien, but it still feels like a steep learning curve. But here’s my short script – And here’s the graph (of Linux kernel compile times) it generates – the blue line…
-
I love R already, but I have not got a clue how to use it
Thanks to Professor Paul A. Rubin, I have discovered GNU R and already I love it and think it is just the tool I need to plot a few of the graphs (of turnaround times for tasks) in my MSc project. But there is one problem – I don’t really know how to use it…