Articles by Jack Davis

R Packette – Fraction Matrix Operations

June 14, 2020 | 0 Comments

Open up any linear algebra textbook and have a look at the matrix entries. Are there all integers? Are they all written as decimals? There's probably at least some that are fractions. Matrices in computer programs are almost always in decimal form. The exception is symbolic mathematics programs like Maple ...
[Read more...]

Reversi in R – Part 2: Graphics and Custom Boards

August 8, 2019 | 0 Comments

In this post, I finish the Reversi / Othello game in R by improving the graphics, adding the ability to save and load boards, and fixing bugs. Also, many more boards have been added and tested, including those with unusual shapes, three or more players, and walls that can make the ...
[Read more...]

Reversi in R – Part 1: Bare Bones

July 21, 2019 | 0 Comments

In this post, I showcase a bare-bones point-and-click implementation of the classic board Reversi (also called Othello*) in the R programming language. R is typically used for more serious, statistical endeavors, but it works reasonably well for more playful projects. Building a classic game like this is an excellent high-school ...
[Read more...]

R Seminar on programming with vectors

June 24, 2017 | 0 Comments

This is the first of five seminars that was given at Simon Fraser University. I've included this one in the blog because it makes for, hopefully, an excellent tutorial for intermediate users of R.Inside:- Vector operations- Building a matrix- Matrix operations- Arrays, data frames, and data tables- Indices- ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)