Publications by Steven M. Mortimer

The Unfinished duplicated Function

19.11.2016

If you’re a regular R user, then you’ve probably used or have seen the function duplicated(). If you’ve only grown up in the world of dplyr and other tidyverse packages with its cool function distinct(), then I highly envy you. In any case, you might find yourself using the duplicated() function when you need some more control. The function...

3016 sym R (2827 sym/3 pcs)

Creating an RStudio Addin

09.12.2016

I never thought too much about RStudio addins, but I saw a few cool examples ( jadd, colorpicker, and addinslist) and decided to take a closer look. After a little research, it seemed easier than I thought. It was easier because RStudio provided some excellent documentation on addins and it turns out that if you can write R code, then you can wri...

2676 sym R (892 sym/2 pcs) 6 img

PFA with the R Package aurelius

12.02.2017

I first heard about the Portable Format for Analytics (PFA) through KDnuggets in 2016. There was a post that in vague way talked about the virtues and benefits of PFA, but not to completely supplant PMML, which I was already familiar with. PMML was pretty cool, but I couldn’t find good support and felt that the XML-based approach was clumsy and...

4445 sym R (2074 sym/8 pcs)

An R User Chooses a Python IDE

06.04.2017

Jupyter Notebooks Rodeo Spyder Text Editor (e.g. Sublime) PyCharm Final Thoughts Yes, this is a post about IDEs. I don’t intend to insult or incite any ill-will towards any person or project. The purpose of this post is to give other people who are familiar working with R, some insight into how a fellow R user has evaluated and experienced pi...

5610 sym 4 img

Google Sites for Documentation

01.06.2017

The WYSIWYG Access Control Permissions Embedded Google Docs, Sheets, etc. Built In Google Search and Analytics Final Thoughts The title of this post is probably off-putting to a large number of people. Why on earth would I use Google Sites for blogging, wiki, and technical documentation? Isn’t that old, outdated tech even though Google did rel...

3671 sym

A Scalable Predictive API with PFA and AWS Lambda

27.07.2017

A Scalable Infrastructure Model Building and Execution using PFA Actually Doing This Step 1 – Creating the Lambda Function Step 2 – Build Your Model Step 3 – Upload Your Model to S3 Step 4 – Test Your Lambda Makes Predictions Step 5 – Hook Lambda Up to API Gateway Load Testing Load Testing Results Load Testing Config Building machine ...

8378 sym R (3590 sym/6 pcs) 18 img

Automating R Scripts with Cron

14.08.2017

Simple Automation Adding Error Emailing Adding Script Logging Simple Automation If you would like to automate R scripts, one method is to use the cron daemon already packaged on Unix-like servers. Let’s say you have script in your home directory called random.R and you would like to schedule it to run at 5:30pm every day. On the server you wil...

4207 sym R (215 sym/3 pcs) 4 img

Building a Corporate R Package

02.11.2017

Analytical Functions Company Constants Templating/Formatting Data Source Connections Tutorials Analytical Functions Creating functions is a programming best practice. They are easier to monitor, test, and teach to others. If your team performs routine calculations, establish a standard by adding functions to the shared library and encourage ever...

3661 sym R (10803 sym/5 pcs)

Tips for Making Professional Shiny Apps with R

08.01.2018

Add a Progress Wheel Create a www Folder Style with CSS Use a global.R file Encourage Data Downloading If you’ve built a Shiny app with R you’ll know how exciting it feels to get your first app up and running. Shiny is an amazing tool for R users, but how do you take it to the next level? This post with outline five easy ways to make Shiny a...

5119 sym R (423 sym/4 pcs) 4 img

Analyzing Customer Data from Square

17.05.2018

The Square Data Model Authenticating Pulling Transaction Data Spend by Customer Group Issues with the APIs Cannot Request Specific Fields Cannot Update Customer Groups Programmatically Customer ID Not On Transactions The Square Data Model Whether you own your own business or consult for a business using Square to capture payment data, Square can...

6261 sym R (5758 sym/7 pcs) 2 img