# Monthly Archive: December 2016

## Fireworks (in R)

New Year – a new chapter, new verse, or just the same old story ? Ultimately we write it. The choice is ours. ― Alex Morritt The Analytics Lab and...continue reading.

## Pokemon and TrelliscopeJS!

I’m always looking for ways to spark my kid’s interest in computers, data, etc. This has proven to be more difficult than I thought it would be (kids these days…)....continue reading.

## Authentication Proxy on Shiny Open Source

A year ago i wrote about a way to authenticate shiny with Auth0, using Apache: http://blog.datascienceheroes.com/adding-authentication-to-shiny-open-source-edition/ This method works but has some issues, Sebastian Peyrott has written an excellent new...continue reading.

## R For Beginners: Some Simple R Code to do Common Statistical Procedures, Part Two

An R tutorial by D. M. Wiig This posting contains an embedded Word document. To view the document full screen click on the icon in the lower right hand corner...continue reading.

## Christmas Tree with ggplot

rm(list = ls()) library(ggplot2) # create data x <- c(8,7,6,7,6,5,6,5,4,5,4,3,4,3,2,3,2,1,0.5,0.1) dat1 <- data.frame(x1 = 1:length(x), x2 = x) dat2 <- data.frame(x1 = 1:length(x), x2 = -x) dat1$xvar <- dat2$xvar <-...continue reading.

## My free book has a cover!

I’m currently writing a book as a hobby. It’s titled Functional programming and unit testing for data munging with R and you can get it for free here. You can...continue reading.

## Price Volatility – Basic Brownian Motion

The Situation You are a consultant who has been hired by a business that sells one commodity product. On December 31st the price is \$100 per unit. The business owner...continue reading.

## Ordering Categories within ggplot2 Facets

I saw Simon Jackson’s recent blog post regarding ordering categories within facets. He proposed a way of dealing with the problem of ordering variables shared across facets within facets. This...continue reading.

## TrelliscopeJS with Plotly

In response to a user’s request and after a short conversation with Carson Sievert (creator / maintainer of the plotly R package), I recently made a small tweak to TrelliscopeJS...continue reading.

## Start Me Up

The startup package makes it easy to control your R startup processes and to share part of your startup settings with others (e.g. as a public Git repository) while keeping...continue reading.

## Inspecting R in GDB (with Python)

Today I spent a few hours debugging a hanging R process that left a zombie sh which so far suggests bug (race condition?) in R’s system2() call. Anyway, it soon turned...continue reading.

## Simple Matrix Factorization with TensorFlow

This post aims to illustrate use of TensorFlow framework for implementing a simple Matrix Factorization (MF). MF is one of the widely used recommender systems that is especially exploited when...continue reading.

## Work on lists of datasets instead of individual datasets by using functional programming

Analyzing a lot of datasets can be tedious. In my work, I often have to compute descriptive statistics, or plot some graphs for some variables for a lot of datasets....continue reading.

## Correlation Primer with Aster and R

Calculating correlations is often starting point before more advanced analytical steps take place. Big data (long data) always presents computational challenges of both scale and distributed nature. In turn they...continue reading.

## R For Beginners: Basic R Code for Common Statistical Procedures Part I

An R tutorial by D. M. Wiig This section gives examples of code to perform some of the most common elementary statistical procedures. All code segments assume that the package...continue reading.

## Automatically generated join-the-dots images

It is interesting to try and figure out what picture emerges from a join-the-dots puzzle (connect-the-dots in some parts of the world). Let’s have a go at some lightweight automatic...continue reading.

## Seinfeld Characters – A Post About Nothing

This post is dedicated to my mother – Seinfeld’s greatest fan. Seinfeld is a classic TV sitcom. It featured four main characters surrounded by relatively normal, everyday, run of the...continue reading.

## Creating figures like the paper ‘Completeness of Digital Accessible Knowledge of Plants of Ghana’ Part 4

This is the fourth part of the of the post where are going to create figure 4 Plot of Inventory Completeness against sample size for grid cells. Part 3 of this series we...continue reading.

## (A Very) Experimental Threading in R

I’ve been trying to find a way to introduce threads to R. I guess there can be many reasons to do that, among which I could mention simplified input/output logic,...continue reading.