Publications by Ralph
Programming with R – Processing Football League Data Part II
Following on from the previous post about creating a football result processing function for data from the football-data.co.uk website we will add code to the function to generate a league table based on the results to date. To create the league table we need to count various things such as the number of games played, number of wins/draws/losses,...
3282 sym Python (5520 sym/10 pcs)
LaTeX Typesetting – Document Structure
Following on from the initial post about creating a document using LaTeX we need to consider the structure of the document, i.e. headings and page layout. Fast Tube by Casper Document Class The document class is a template that specifies the appearance of different components of a document, e.g. the font and size of headings. The most commonly us...
2336 sym R (112 sym/5 pcs) 2 img
LaTeX Typesetting – Tables
One area of LaTeX that is not always straightforward is producing tabular material. In this post we will look at some of the basics of creating tables in a LaTeX document. Fast Tube by Casper When creating tables there is a tabular environment that can be used and we need to specify the number of columns using characters to indicate the text alig...
1822 sym R (473 sym/5 pcs) 2 img
Gapminder
As many people are aware Hans Rosling is an enthusiastic swedish academic with a passion for statistics who recently presented the program The Joy of Stats. One of the great things about Hans Rosling is his presentations and the interactive graphics that he uses to make his points. Fast Tube by Casper The gapminder software used in his presentati...
1002 sym 2 img
Data Mining with WEKA
There are a number of good open source projects for statistics and data mining, for example the software WEKA developed at the University of Waikato. The description on their website states that: Weka is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a dataset or called from you...
830 sym R (359 sym/1 pcs)
Statistical Graphics – Edward Tufte
The work of Edward Tufte is worth reading if you are interested in designing meaningful graphs and removing chart junk from your displays. Related To leave a comment for the author, please follow the link and comment on their blog: Software for Exploratory Data Analysis and Statistical Modelling. R-bloggers.com offers daily e-mail updates abo...
585 sym
R Package Automated Download
There are situations where we might want to run R on a standalone machine so need to download a (potentially) large number of packages to install on this system. Rather than having to through the pain of searching through CRAN to find the packages and all the dependencies and manually download, it would be nice to be able grab all available packa...
1363 sym R (99 sym/1 pcs)
R Matrix Operations
R can be used to perform various matrix calculations. This include functions for creating matrices (matrix), addition (+), multiplication (%*%) and inversion (solve). Fast Tube by Casper Other useful resources are provided on the Supplementary Material page. Related To leave a comment for the author, please follow the link and comment on their ...
705 sym 2 img
Fractional Factorial Designs using FrF2
The FrF2 package for R can be used to create regular and non-regular Fractional Factorial 2-level designs. It is reasonably straightforward to use. First step is to install the package then make it available for use in the current session: require(FrF2) A basic call to the main functino FrF2 specifies the number of runs in the fractional factoria...
1550 sym R (464 sym/4 pcs)
Handling Errors Gracefully
In R functions sometimes produces warnings or errors. In the case of errors execution of a function or a series of commands can get halted when an error occurs, which can in some cases be frustrating especially if we want to continue our calculations. There are various functions available in R for dealing with errors and in this post we will cons...
1576 sym R (193 sym/3 pcs)