# Articles by Francis Smart

July 22, 2013 |

If you are anything like me then you have dozens if not hundreds of personal functions that you have written to accomplish a number of tasks.  Many of the tasks that you would like to do are similar to previous tasks that you have already done. &n... [Read more...]

### Simulation of Blackjack: the odds are not with you

July 19, 2013 |

I often want to simulate outcomes varying across a set of parameters. In order to accomplish this in an efficient manner I have coded up a little function that takes parameter vectors and produces results. First I will show how to set it up with some d... [Read more...]

### A Sudoku Puzzle Solver – attempt 1

July 9, 2013 |

I have programmed up a R based Sudoku problem solver for Sudoku puzzles of that only require simple inference.  In these puzzles a solution can be found using only first order inference.  This solver can be found at the end of the code locate... [Read more...]

### Optimal Pricing for a Simple Monopolist

July 5, 2013 |

# A single price monopolist is a monopolist because it is the only supplier of a particular product. The monopolist therefore has the power to choose a price to sell the product at. # Those who have a willingness to pay which is greater than the ... [Read more...]

### Zombie Apocalypse Survival Test – R-Powered (using Concerto)

June 17, 2013 |

This test is the first attempt to seriously assess the ability of individuals to survive a zombie apocalypse.  This test is administered using the R powered open-source testing platform Concerto developed at the University of Cambridge. The t... [Read more...]

### Sudoku Automation Solver Challenge – R

June 14, 2013 |

On a recent flight I was bored waiting for the plane to land and I tried out the electronic sudoku game that they had offered.  I found the game surprisingly interesting as I realized that it is far more entertaining when you cannot use paper or p... [Read more...]

### More explorations of Shiny

June 11, 2013 |

I have continued to explore the functionality of the Shiny package released by the Rstudio team and I have been increasingly impressed.  The code fits together very clean and easy to manipulate or add to.  If you have some knowledge of html o... [Read more...]

### Bulk search for domain names using R

June 8, 2013 |

# There are several domain name servers that allow # for bulk searching of domain names.# http://www.godaddy.com/bulk-domain-search.aspx# http://www.namestation.com/bulk-domain-search# However, they do not provide any wildcard support # and instead exp... [Read more...]

### A Shiny App Goes Viral

June 7, 2013 |

I am not sure how many of you have seen this Business Insider article.  It is basically about a shiny app created by Joshua Katz as NC State.  It is really fun playing with shiny app.With nearly a million facebook likes this web app buil... [Read more...]

### Running R Scripts Directly From Dropbox

June 5, 2013 |

I have written a little function that allows users to run R scripts out of Dropbox directly from any location.  It was aided by this post on biobucket.  The reason I am particularly interested in this feature is because I am often using a ser... [Read more...]

### Are Fox News Polls Biased?

May 29, 2013 |

Especially after the outcome of the mid-term election, I think there is a common contention among some groups that there is something wonky about Fox News when it comes to reporting polls relative to President Obama and the Democratic Party in general.... [Read more...]

### Item Analysis App – Shiny Code

May 28, 2013 |

Here is the code for my first Shiny App! It is the one that I posted previously with a few slight revisions. You can see it at:A Shiny R AppIn order to make any sense of this I suggest you working through the tutorial (http://www.rstudio.com/shiny/) ... [Read more...]

### Shiny + Concerto = YES !!!

May 23, 2013 |

So I have finally gotten beta access to the two most powerful R controlled web application makers in existence and produced very exciting experimental productsA few posts ago I posted a Visual Reasoning Test that I had made by hand and powered wit... [Read more...]

### My Prime Sieve – Homage to Yitan Zhang

May 22, 2013 |

# As a homage to Yitang Zhang who has proven a mind-bending property of Prime Pairs, I have written a prime Sieve to detect all of the prime numbers from 1 to N. # There might very well be a function in the base package that already does this. No... [Read more...]

### Non-Verbal Reasoning Test – Concerto

May 20, 2013 |

I have just released my first complete test of non-verbal problem solving skills.  It is run on Concerto (an R-based application development platform targeted at primarily test developers)  Try it out by following the link below.Non-Verbal Re... [Read more...]

### Strategic Zombie Simulation – Animation

May 17, 2013 |

# Escape Zombie Land! # This is a simulation an escape from a hot zombie zone. It freezes and gives an error if you get get killed so you had best not. You attempt to navigate the zone by constructing waypoints. # This is not a very clean s... [Read more...]

### SIR Model – The Flue Season – Dynamic Programming

May 14, 2013 |

# The SIR Model (susceptible, infected, and recovered) model is a common and useful tool in epidemiological modelling.# In this post and in future posts I hope to explore how this basic model can be enriched by including different population group... [Read more...]

### Spatial Critter Swarming Simulation

May 10, 2013 |

# I am interested in how small bits of individualized instructions can create collective action.# In this simulation I will give a single instruction to each individual in the swarm.# Choose another individual who is not too close, then accelerate towards that individual.# I also control momentum causing the previous movement ... [Read more...]

### Quandl Package – 5,000,000 free datasets at the tip of your fingers!

May 5, 2013 |

# Yes, you read that correctly and no Quandl (http://www.quandl.com/) did not pay me anything.# Quandl is a new database management tool which seeks to become the place to find datasets.  They boast of having over 5x10^6 data sets available t...